We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c323d13 commit 34bfc12Copy full SHA for 34bfc12
helpers/cc.sh
@@ -8,6 +8,11 @@ export ZIG_LOCAL_CACHE_DIR="$PROJECT_ROOT/.zigcache/"
8
9
set -x
10
11
-zig cc -target "$ZTARGET" "$@"
+if [[ "$ZTARGET" == "macos-*" ]]; then
12
+ SYSROOT="$(xcrun --show-sdk-path)"
13
+ zig cc -target "$ZTARGET" --sysroot "$SYSROOT" "$@"
14
+else
15
+ zig cc -target "$ZTARGET" "$@"
16
+fi
17
18
set +x
helpers/cxx.sh
-zig c++ -target "$ZTARGET" "$@"
+ zig c++ -target "$ZTARGET" --sysroot "$SYSROOT" "$@"
+ zig c++ -target "$ZTARGET" "$@"
-set +x
+set +x
0 commit comments