mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 13:58:27 +00:00
ci: better target triple and mcpu cmake args
This commit is contained in:
parent
85755c51d5
commit
553fbeba82
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user