authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-08-08 16:41:06-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-08-26 00:34:40-04:00
log234030c37a97d3da7bc6325e4dfb32fe37e9b039
tree6f973a7d68d8bd1aa84e8ad54d7b8d4bc7fee8e6
parent8f57544410f80d336d1af2bea46812f81e505d72

update build to look for llvm 5.0


4 files changed, 8 insertions(+), 8 deletions(-)

README.md+1-1
...@@ -76,7 +76,7 @@ the Zig compiler itself:...@@ -76,7 +76,7 @@ the Zig compiler itself:
76These libraries must be installed on your system, with the development files76These libraries must be installed on your system, with the development files
77available. The Zig compiler links against them.77available. The Zig compiler links against them.
7878
79 * LLVM, Clang, and LLD libraries == 4.x79 * LLVM, Clang, and LLD libraries == 5.x
8080
81### Debug / Development Build81### Debug / Development Build
8282
cmake/Findclang.cmake+2-2
...@@ -8,14 +8,14 @@...@@ -8,14 +8,14 @@
88
9find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h9find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h
10 PATHS10 PATHS
11 /usr/lib/llvm-4.0/include11 /usr/lib/llvm-5.0/include
12 /mingw64/include)12 /mingw64/include)
1313
14 macro(FIND_AND_ADD_CLANG_LIB _libname_)14 macro(FIND_AND_ADD_CLANG_LIB _libname_)
15 string(TOUPPER ${_libname_} _prettylibname_)15 string(TOUPPER ${_libname_} _prettylibname_)
16 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}16 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}
17 PATHS17 PATHS
18 /usr/lib/llvm-4.0/lib18 /usr/lib/llvm-5.0/lib
19 /mingw64/lib19 /mingw64/lib
20 /c/msys64/mingw64/lib20 /c/msys64/mingw64/lib
21 c:\\msys64\\mingw64\\lib)21 c:\\msys64\\mingw64\\lib)
cmake/Findlld.cmake+3-3
...@@ -8,10 +8,10 @@...@@ -8,10 +8,10 @@
88
9find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h9find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h
10 PATHS10 PATHS
11 /usr/lib/llvm-4.0/include11 /usr/lib/llvm-5.0/include
12 /mingw64/include)12 /mingw64/include)
1313
14find_library(LLD_LIBRARY NAMES lld-4.0 lld PATHS /usr/lib/llvm-4.0/lib)14find_library(LLD_LIBRARY NAMES lld-5.0 lld PATHS /usr/lib/llvm-5.0/lib)
15if(EXISTS ${LLD_LIBRARY})15if(EXISTS ${LLD_LIBRARY})
16 set(LLD_LIBRARIES ${LLD_LIBRARY})16 set(LLD_LIBRARIES ${LLD_LIBRARY})
17else()17else()
...@@ -19,7 +19,7 @@ else()...@@ -19,7 +19,7 @@ else()
19 string(TOUPPER ${_libname_} _prettylibname_)19 string(TOUPPER ${_libname_} _prettylibname_)
20 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}20 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}
21 PATHS21 PATHS
22 /usr/lib/llvm-4.0/lib22 /usr/lib/llvm-5.0/lib
23 /mingw64/lib23 /mingw64/lib
24 /c/msys64/mingw64/lib24 /c/msys64/mingw64/lib
25 c:/msys64/mingw64/lib)25 c:/msys64/mingw64/lib)
cmake/Findllvm.cmake+2-2
...@@ -8,12 +8,12 @@...@@ -8,12 +8,12 @@
8# LLVM_LIBDIRS8# LLVM_LIBDIRS
99
10find_program(LLVM_CONFIG_EXE10find_program(LLVM_CONFIG_EXE
11 NAMES llvm-config llvm-config-4.011 NAMES llvm-config llvm-config-5.0
12 PATHS12 PATHS
13 "/mingw64/bin"13 "/mingw64/bin"
14 "/c/msys64/mingw64/bin"14 "/c/msys64/mingw64/bin"
15 "c:/msys64/mingw64/bin"15 "c:/msys64/mingw64/bin"
16 "C:/Libraries/llvm-4.0.0/bin")16 "C:/Libraries/llvm-5.0.0/bin")
1717
18execute_process(18execute_process(
19 COMMAND ${LLVM_CONFIG_EXE} --libs19 COMMAND ${LLVM_CONFIG_EXE} --libs