summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-09-25 11:42:19 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-04 21:47:47 -0400
commit8039b6257ce5288e9e38c2593ff2d5d6d316efd4 (patch)
treee621bb88c0cde7bc2ea6249fd3c9a9c32d058e7c /utils
parent93f02b6223b8fc4d85ece389ac0520ee9cc20f2f (diff)
downloadhaskell-8039b6257ce5288e9e38c2593ff2d5d6d316efd4.tar.gz
Add musl systems to llvm-targets
This was done in Nixpkgs, but never upstreamed. Musl is pretty much the same as gnu, but with a different libc. I’ve used the same values for everything.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/llvm-targets/gen-data-layout.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/llvm-targets/gen-data-layout.sh b/utils/llvm-targets/gen-data-layout.sh
index 15fa113550..450d21903c 100755
--- a/utils/llvm-targets/gen-data-layout.sh
+++ b/utils/llvm-targets/gen-data-layout.sh
@@ -33,19 +33,30 @@ TARGETS=(
# Linux ARM
"arm-unknown-linux-gnueabihf"
+ "arm-unknown-linux-musleabihf"
"armv6-unknown-linux-gnueabihf"
+ "armv6-unknown-linux-musleabihf"
"armv6l-unknown-linux-gnueabihf"
+ "armv6l-unknown-linux-musleabihf"
"armv7-unknown-linux-gnueabihf"
+ "armv7-unknown-linux-musleabihf"
"armv7a-unknown-linux-gnueabi"
+ "armv7a-unknown-linux-musleabi"
"armv7a-unknown-linux-gnueabihf"
+ "armv7a-unknown-linux-musleabihf"
"armv7l-unknown-linux-gnueabi"
+ "armv7l-unknown-linux-musleabi"
"armv7l-unknown-linux-gnueabihf"
+ "armv7l-unknown-linux-musleabihf"
"aarch64-unknown-linux-gnu"
+ "aarch64-unknown-linux-musl"
"aarch64-unknown-linux"
# Linux x86
"i386-unknown-linux-gnu"
+ "i386-unknown-linux-musl"
"i386-unknown-linux"
"x86_64-unknown-linux-gnu"
+ "x86_64-unknown-linux-musl"
"x86_64-unknown-linux"
# Linux Android
"x86_64-unknown-linux-android"
@@ -53,6 +64,8 @@ TARGETS=(
"aarch64-unknown-linux-android"
"armv7a-unknown-linux-androideabi"
# Linux ppc64le
+ "powerpc64le-unknown-linux-gnu"
+ "powerpc64le-unknown-linux-musl"
"powerpc64le-unknown-linux"
#########################