Skip to content

Commit

Permalink
[CI][macOS] Pin LLVM version and install lld (#4831)
Browse files Browse the repository at this point in the history
Pinned LLVM to v19; cannot do the same for LLD though.

This allows us to revert #4827.
  • Loading branch information
antiagainst authored Sep 30, 2024
1 parent 1df64d1 commit 256ef34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ jobs:
- name: Install brew dependencies
run: |
brew update
brew install ccache llvm
brew install ccache llvm@19 lld
- name: Compute cache keys
id: cache-key
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ jobs:
- name: Install brew dependencies
run: |
brew update
brew install ccache llvm
brew install ccache llvm@19 lld

- *compute-cache-keys-step
- *cache-build-dependencies-step
Expand Down
11 changes: 4 additions & 7 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,11 @@ def build_extension(self, ext):
cmake_args += [
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_LINKER=lld",
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld",
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld",
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld",
]
if platform.system() != "Darwin":
cmake_args += [
"-DCMAKE_LINKER=lld",
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld",
"-DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld",
"-DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld",
]

# Note that asan doesn't work with binaries that use the GPU, so this is
# only useful for tools like triton-opt that don't run code on the GPU.
Expand Down

0 comments on commit 256ef34

Please sign in to comment.