ci: better target triple and mcpu cmake args
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user