From ce584238e66a32f93c1af4d16bfe4a1928e25b88 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 09:15:40 +0000 Subject: fix(build): select the macOS SDK before compiler detection Co-Authored-By: Claude Fable 5.1 --- tools/build-static-lld.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/build-static-lld.sh b/tools/build-static-lld.sh index 407e814..2c2f77e 100644 --- a/tools/build-static-lld.sh +++ b/tools/build-static-lld.sh @@ -36,6 +36,7 @@ fi set -- if [ "$(uname -s)" = Darwin ]; then set -- "-DCMAKE_OSX_ARCHITECTURES=$(uname -m)" \ + "-DCMAKE_OSX_SYSROOT=$(xcrun --show-sdk-path)" \ "-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-15.0}" fi cmake -S "$work/src/lld" -B "$work/build" \ -- cgit v1.3.1-4-g156e