aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-16 09:04:34 +0000
committer_ov4 <ov4@ov4.org>2026-10-16 09:04:34 +0000
commitb439592cf8113f34240095dcd6d8b6196c7d87c7 (patch)
tree7cf868c8d295d38a923efea48ff4dff8566295ee /.github
parente7cd4478407fb0261ba8cec01381eb154d884d1f (diff)
fix(build): build matching static LLD for macOS
Build LLD from the installed LLVM version's official source release and install static archives into the local build prefix. Include the Mach-O unwind headers, preserve static library checks and document the setup. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nightly-build.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index 1f21821..048133d 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -123,13 +123,16 @@ jobs:
- name: Install LLVM 23 and packaging dependencies
run: |
test "$(uname -m)" = arm64
- brew install llvm@23 lld pandoc zlib zstd ncurses python
+ brew install llvm@23 pandoc zlib zstd ncurses python
test -x "$(brew --prefix llvm@23)/bin/clang++"
+ - name: Build matching static LLD libraries
+ run: |
+ sh tools/build-static-lld.sh "$(brew --prefix llvm@23)" "$PWD/build" 3
+
- name: Build the embedded release package
run: |
llvm_prefix=$(brew --prefix llvm@23)
- lld_prefix=$(brew --prefix lld)
zlib_prefix=$(brew --prefix zlib)
zstd_prefix=$(brew --prefix zstd)
ncurses_prefix=$(brew --prefix ncurses)
@@ -139,7 +142,7 @@ jobs:
-DCMAKE_C_COMPILER="$llvm_prefix/bin/clang" \
-DCMAKE_CXX_COMPILER="$llvm_prefix/bin/clang++" \
-DLLVM_DIR="$llvm_prefix/lib/cmake/llvm" \
- -DCMAKE_PREFIX_PATH="$llvm_prefix;$lld_prefix;$zlib_prefix;$zstd_prefix;$ncurses_prefix"
+ -DCMAKE_PREFIX_PATH="$llvm_prefix;$zlib_prefix;$zstd_prefix;$ncurses_prefix"
cmake --build build --target release --parallel 3
- name: Smoke test the packaged compiler