Commit 9e05f42fee

Andrew Kelley <andrew@ziglang.org>
2020-10-13 07:32:14
ci: macos: set the cross compile cmake option
This should avoid invoking llvm-config to work around a symbol not found inside libstdc++, and plus it's technically more correct anyway.
1 parent 92926c4
Changed files (1)
ci
ci/azure/macos_script
@@ -3,8 +3,6 @@
 set -x
 set -e
 
-system_profiler SPHardwareDataType
-
 brew install s3cmd gcc@10
 
 ZIGDIR="$(pwd)"
@@ -33,7 +31,7 @@ git config core.abbrev 9
 
 mkdir build
 cd build
-cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$(pwd)/release -DZIG_STATIC=ON
+cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$(pwd)/release -DZIG_STATIC=ON -DZIG_TARGET_TRIPLE=x86_64-macos.10.15.7-gnu
 make $JOBS install
 release/bin/zig build test