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:
7676These libraries must be installed on your system, with the development files
7777available. The Zig compiler links against them.
7878
79 * LLVM, Clang, and LLD libraries == 4.x
79 * LLVM, Clang, and LLD libraries == 5.x
8080
8181### Debug / Development Build
8282
cmake/Findclang.cmake+2-2
......@@ -8,14 +8,14 @@
88
99find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h
1010 PATHS
11 /usr/lib/llvm-4.0/include
11 /usr/lib/llvm-5.0/include
1212 /mingw64/include)
1313
1414 macro(FIND_AND_ADD_CLANG_LIB _libname_)
1515 string(TOUPPER ${_libname_} _prettylibname_)
1616 find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_}
1717 PATHS
18 /usr/lib/llvm-4.0/lib
18 /usr/lib/llvm-5.0/lib
1919 /mingw64/lib
2020 /c/msys64/mingw64/lib
2121 c:\\msys64\\mingw64\\lib)
cmake/Findlld.cmake+3-3
......@@ -8,10 +8,10 @@
88
99find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h
1010 PATHS
11 /usr/lib/llvm-4.0/include
11 /usr/lib/llvm-5.0/include
1212 /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)
1515if(EXISTS ${LLD_LIBRARY})
1616 set(LLD_LIBRARIES ${LLD_LIBRARY})
1717else()
......@@ -19,7 +19,7 @@ else()
1919 string(TOUPPER ${_libname_} _prettylibname_)
2020 find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_}
2121 PATHS
22 /usr/lib/llvm-4.0/lib
22 /usr/lib/llvm-5.0/lib
2323 /mingw64/lib
2424 /c/msys64/mingw64/lib
2525 c:/msys64/mingw64/lib)
cmake/Findllvm.cmake+2-2
......@@ -8,12 +8,12 @@
88# LLVM_LIBDIRS
99
1010find_program(LLVM_CONFIG_EXE
11 NAMES llvm-config llvm-config-4.0
11 NAMES llvm-config llvm-config-5.0
1212 PATHS
1313 "/mingw64/bin"
1414 "/c/msys64/mingw64/bin"
1515 "c:/msys64/mingw64/bin"
16 "C:/Libraries/llvm-4.0.0/bin")
16 "C:/Libraries/llvm-5.0.0/bin")
1717
1818execute_process(
1919 COMMAND ${LLVM_CONFIG_EXE} --libs