ci: better target triple and mcpu cmake args

This commit is contained in:
Andrew Kelley
2021-04-14 23:49:16 -07:00
parent 85755c51d5
commit 553fbeba82
3 changed files with 5 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ cmake .. \
-DCMAKE_PREFIX_PATH="$PREFIX" \
-DCMAKE_BUILD_TYPE=Release \
-DZIG_TARGET_TRIPLE="$ARCH-native-gnu" \
-DZIG_TARGET_MCPU="baseline" \
-DZIG_TARGET_MCPU="x86_64_v2" \
-DZIG_STATIC=ON
# Now cmake will use zig as the C/C++ compiler. We reset the environment variables

View File

@@ -35,6 +35,8 @@ cmake .. -DCMAKE_BUILD_TYPE=Release \
"-DCMAKE_INSTALL_PREFIX=$(pwd)/dist" \
-DZIG_OMIT_STAGE2=ON \
-DZIG_STATIC=ON \
-DZIG_TARGET_TRIPLE="x86_64-native-gnu" \
-DZIG_TARGET_MCPU="x86_64_v2" \
-GNinja
# Now cmake will use zig as the C/C++ compiler. We reset the environment variables

View File

@@ -34,7 +34,8 @@ cmake .. \
-DCMAKE_PREFIX_PATH=$PREFIX \
"-DCMAKE_INSTALL_PREFIX=$(pwd)/release" \
-DZIG_STATIC=ON \
-DZIG_TARGET_TRIPLE="x86_64-freebsd-gnu" \
-DZIG_TARGET_TRIPLE="x86_64-native-gnu" \
-DZIG_TARGET_MCPU="x86_64_v2" \
-GNinja
samu install