Skip to content

Commit

Permalink
cmake: add /usr/lib/llvm13 to searched paths
Browse files Browse the repository at this point in the history
Alpine linux installs llvm to this path and currently patches zig's
cmake file in order to build zig from source.

https://git.alpinelinux.org/aports/tree/testing/zig/llvm-include.patch?id=0c3f7850bef38fb4c63fc6af5c14724e5311b0cc
  • Loading branch information
ifreund authored and andrewrk committed May 5, 2022
1 parent ba12705 commit 49a7ceb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/Findllvm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ find_path(LLVM_INCLUDE_DIRS NAMES llvm/IR/IRBuilder.h
/usr/lib/llvm/13/include
/usr/lib/llvm-13/include
/usr/lib/llvm-13.0/include
/usr/lib/llvm13/include
/usr/local/llvm13/include
/usr/local/llvm130/include
/usr/local/opt/llvm@13/include
Expand All @@ -31,6 +32,7 @@ if(ZIG_PREFER_CLANG_CPP_DYLIB)
/usr/lib/llvm/13/lib
/usr/lib/llvm/13/lib64
/usr/lib/llvm-13/lib
/usr/lib/llvm13/lib
/usr/local/llvm13/lib
/usr/local/llvm130/lib
/usr/local/opt/llvm@13/lib
Expand Down

0 comments on commit 49a7ceb

Please sign in to comment.