aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-05-04 19:26:33 +0200
committerAndrew Kelley <andrew@ziglang.org>2022-05-05 02:51:48 -0400
commit49a7ceb5bcd87d8aeb7b25f8b2972ad4ec0b9e24 (patch)
treebddded56ff9b5966152f21234c1f463210cc7c3f /cmake
parentba127058d1fcf3ca042794244eee052915998b1a (diff)
downloadzig-49a7ceb5bcd87d8aeb7b25f8b2972ad4ec0b9e24.tar.gz
zig-49a7ceb5bcd87d8aeb7b25f8b2972ad4ec0b9e24.zip
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
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findllvm.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Findllvm.cmake b/cmake/Findllvm.cmake
index 257a406b66..62c31f282c 100644
--- a/cmake/Findllvm.cmake
+++ b/cmake/Findllvm.cmake
@@ -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
@@ -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