freebsd: Add support for aarch64 (#358053)
This commit is contained in:
commit
07f8638828
@ -13,7 +13,7 @@ let
|
|||||||
"x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin"
|
"x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin"
|
||||||
|
|
||||||
# FreeBSD
|
# FreeBSD
|
||||||
"i686-freebsd" "x86_64-freebsd"
|
"i686-freebsd" "x86_64-freebsd" "aarch64-freebsd"
|
||||||
|
|
||||||
# Genode
|
# Genode
|
||||||
"aarch64-genode" "i686-genode" "x86_64-genode"
|
"aarch64-genode" "i686-genode" "x86_64-genode"
|
||||||
|
@ -335,6 +335,11 @@ rec {
|
|||||||
|
|
||||||
# BSDs
|
# BSDs
|
||||||
|
|
||||||
|
aarch64-freebsd = {
|
||||||
|
config = "aarch64-unknown-freebsd";
|
||||||
|
useLLVM = true;
|
||||||
|
};
|
||||||
|
|
||||||
x86_64-freebsd = {
|
x86_64-freebsd = {
|
||||||
config = "x86_64-unknown-freebsd";
|
config = "x86_64-unknown-freebsd";
|
||||||
useLLVM = true;
|
useLLVM = true;
|
||||||
|
@ -52,7 +52,7 @@ lib.runTests (
|
|||||||
|
|
||||||
testcygwin = mseteq cygwin [ "i686-cygwin" "x86_64-cygwin" ];
|
testcygwin = mseteq cygwin [ "i686-cygwin" "x86_64-cygwin" ];
|
||||||
testdarwin = mseteq darwin [ "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin" ];
|
testdarwin = mseteq darwin [ "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin" ];
|
||||||
testfreebsd = mseteq freebsd [ "i686-freebsd" "x86_64-freebsd" ];
|
testfreebsd = mseteq freebsd [ "aarch64-freebsd" "i686-freebsd" "x86_64-freebsd" ];
|
||||||
testgenode = mseteq genode [ "aarch64-genode" "i686-genode" "x86_64-genode" ];
|
testgenode = mseteq genode [ "aarch64-genode" "i686-genode" "x86_64-genode" ];
|
||||||
testredox = mseteq redox [ "x86_64-redox" ];
|
testredox = mseteq redox [ "x86_64-redox" ];
|
||||||
testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
|
testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
stdenv,
|
||||||
lib,
|
lib,
|
||||||
mkDerivation,
|
mkDerivation,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
@ -14,6 +15,8 @@ mkDerivation {
|
|||||||
"contrib/libc-vis"
|
"contrib/libc-vis"
|
||||||
"etc/mtree/BSD.include.dist"
|
"etc/mtree/BSD.include.dist"
|
||||||
"sys"
|
"sys"
|
||||||
|
# Used for aarch64-freebsd
|
||||||
|
"lib/msun/arm"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraNativeBuildInputs = [
|
extraNativeBuildInputs = [
|
||||||
|
@ -106,6 +106,9 @@ mkDerivation {
|
|||||||
"include/paths.h"
|
"include/paths.h"
|
||||||
|
|
||||||
"lib/libdl"
|
"lib/libdl"
|
||||||
|
|
||||||
|
# Used for aarch64-freebsd
|
||||||
|
"contrib/arm-optimized-routines"
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user