Skip to content

Commit 230354b

Browse files
committed
fix macos build
1 parent bdfe083 commit 230354b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-llvm-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/llvm-install" \
7575
../llvm
7676
elif [ "$RUNNER_OS" == "macOS" ]; then
77-
# Set SDKROOT to ensure CMake's try_compile checks find system headers
77+
# Set SDKROOT and pass it to CMake to ensure it finds system headers
7878
export SDKROOT=$(xcrun --show-sdk-path)
7979
cmake -G Ninja \
8080
-DCMAKE_BUILD_TYPE=Release \
@@ -92,6 +92,7 @@ jobs:
9292
-DLLVM_TOOL_LLVM_CONFIG_BUILD=ON \
9393
-DHAVE_CXX_ATOMICS_WITHOUT_LIB=ON \
9494
-DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON \
95+
-DDEFAULT_SYSROOT="$SDKROOT" \
9596
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/llvm-install" \
9697
../llvm
9798
else

0 commit comments

Comments
 (0)