authorgravatar for mail@isaacfreund.comIsaac Freund <mail@isaacfreund.com> 2022-05-04 19:26:33+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-05 02:51:48-04:00
log49a7ceb5bcd87d8aeb7b25f8b2972ad4ec0b9e24
treebddded56ff9b5966152f21234c1f463210cc7c3f
parentba127058d1fcf3ca042794244eee052915998b1a

cmake: add /usr/lib/llvm13 to searched paths

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

1 files changed, 2 insertions(+), 0 deletions(-)

cmake/Findllvm.cmake+2
......@@ -12,6 +12,7 @@ find_path(LLVM_INCLUDE_DIRS NAMES llvm/IR/IRBuilder.h
1212 /usr/lib/llvm/13/include
1313 /usr/lib/llvm-13/include
1414 /usr/lib/llvm-13.0/include
15 /usr/lib/llvm13/include
1516 /usr/local/llvm13/include
1617 /usr/local/llvm130/include
1718 /usr/local/opt/llvm@13/include
......@@ -31,6 +32,7 @@ if(ZIG_PREFER_CLANG_CPP_DYLIB)
3132 /usr/lib/llvm/13/lib
3233 /usr/lib/llvm/13/lib64
3334 /usr/lib/llvm-13/lib
35 /usr/lib/llvm13/lib
3436 /usr/local/llvm13/lib
3537 /usr/local/llvm130/lib
3638 /usr/local/opt/llvm@13/lib