aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-09 19:09:09 -0500
committerJack Lloyd <[email protected]>2020-11-09 19:09:09 -0500
commit6a2666e0b283fb73d6f84959173c9296e0321398 (patch)
tree72a2602e31814d11892b346f29051a3e4761a035 /src/build-data
parenteb0b710a8fef5e0f83caee601a46c137af21b019 (diff)
Use -mcpu=power9 for DARN support
This is apparently needed with certain (perhaps distro specific?) builds of GCC.
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/arch/ppc64.txt1
-rw-r--r--src/build-data/cc/clang.txt3
-rw-r--r--src/build-data/cc/gcc.txt1
3 files changed, 5 insertions, 0 deletions
diff --git a/src/build-data/arch/ppc64.txt b/src/build-data/arch/ppc64.txt
index 57a363c04..4b871e85e 100644
--- a/src/build-data/arch/ppc64.txt
+++ b/src/build-data/arch/ppc64.txt
@@ -13,4 +13,5 @@ ppc64el
<isa_extensions>
altivec
powercrypto
+power9
</isa_extensions>
diff --git a/src/build-data/cc/clang.txt b/src/build-data/cc/clang.txt
index 8b22eb667..85f1d2ddb 100644
--- a/src/build-data/cc/clang.txt
+++ b/src/build-data/cc/clang.txt
@@ -58,6 +58,9 @@ rdseed -> "-mrdseed"
sha -> "-msha"
altivec -> "-maltivec"
+ppc64:powercrypto -> "-mcrypto"
+ppc64:power9 -> "-mcpu=power9"
+
arm64:armv8crypto -> "-march=armv8+crypto"
arm32:neon -> "-mfpu=neon"
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt
index 3848fb0dd..c164da671 100644
--- a/src/build-data/cc/gcc.txt
+++ b/src/build-data/cc/gcc.txt
@@ -65,6 +65,7 @@ sha -> "-msha"
altivec -> "-maltivec"
powercrypto -> "-mcrypto"
+ppc64:power9 -> "-mcpu=power9"
arm64:armv8crypto -> ""
arm64:armv8sm3 -> "-march=armv8.2-a+sm4"