| author | |
| committer | |
| log | 536c35136ab98f2f56d07937727b3c99c0e35c5c |
| tree | 34da76abd2a1716b4d4340dbce0b9e4776acfd9e |
| parent | f48f7f43fe7095fd13995d838b1452d67fc00ac7 |
4 files changed, 8 insertions(+), 5 deletions(-)
CMakeLists.txt+3| ... | ... | @@ -34,6 +34,8 @@ include_directories(${CLANG_INCLUDE_DIRS}) |
| 34 | 34 | find_package(lld) |
| 35 | 35 | include_directories(${LLD_INCLUDE_DIRS}) |
| 36 | 36 | |
| 37 | find_package(Threads) | |
| 38 | ||
| 37 | 39 | include_directories( |
| 38 | 40 | ${CMAKE_SOURCE_DIR} |
| 39 | 41 | ${CMAKE_BINARY_DIR} |
| ... | ... | @@ -196,6 +198,7 @@ target_link_libraries(zig LINK_PUBLIC |
| 196 | 198 | ${CLANG_LIBRARIES} |
| 197 | 199 | ${LLD_LIBRARIES} |
| 198 | 200 | ${LLVM_LIBRARIES} |
| 201 | ${CMAKE_THREAD_LIBS_INIT} | |
| 199 | 202 | ) |
| 200 | 203 | install(TARGETS zig DESTINATION bin) |
| 201 | 204 |
cmake/Findclang.cmake+2-2| ... | ... | @@ -8,14 +8,14 @@ |
| 8 | 8 | |
| 9 | 9 | find_path(CLANG_INCLUDE_DIRS NAMES clang/Frontend/ASTUnit.h |
| 10 | 10 | PATHS |
| 11 | /usr/lib/llvm-4/include | |
| 11 | /usr/lib/llvm-4.0/include | |
| 12 | 12 | /mingw64/include) |
| 13 | 13 | |
| 14 | 14 | macro(FIND_AND_ADD_CLANG_LIB _libname_) |
| 15 | 15 | string(TOUPPER ${_libname_} _prettylibname_) |
| 16 | 16 | find_library(CLANG_${_prettylibname_}_LIB NAMES ${_libname_} |
| 17 | 17 | PATHS |
| 18 | /usr/lib/llvm-4/lib | |
| 18 | /usr/lib/llvm-4.0/lib | |
| 19 | 19 | /mingw64/lib) |
| 20 | 20 | if(CLANG_${_prettylibname_}_LIB) |
| 21 | 21 | set(CLANG_LIBRARIES ${CLANG_LIBRARIES} ${CLANG_${_prettylibname_}_LIB}) |
cmake/Findlld.cmake+2-2| ... | ... | @@ -8,14 +8,14 @@ |
| 8 | 8 | |
| 9 | 9 | find_path(LLD_INCLUDE_DIRS NAMES lld/Driver/Driver.h |
| 10 | 10 | PATHS |
| 11 | /usr/lib/llvm-4/include | |
| 11 | /usr/lib/llvm-4.0/include | |
| 12 | 12 | /mingw64/include) |
| 13 | 13 | |
| 14 | 14 | macro(FIND_AND_ADD_LLD_LIB _libname_) |
| 15 | 15 | string(TOUPPER ${_libname_} _prettylibname_) |
| 16 | 16 | find_library(LLD_${_prettylibname_}_LIB NAMES ${_libname_} |
| 17 | 17 | PATHS |
| 18 | /usr/lib/llvm-4/lib | |
| 18 | /usr/lib/llvm-4.0/lib | |
| 19 | 19 | /mingw64/lib) |
| 20 | 20 | if(LLD_${_prettylibname_}_LIB) |
| 21 | 21 | set(LLD_LIBRARIES ${LLD_LIBRARIES} ${LLD_${_prettylibname_}_LIB}) |
cmake/Findllvm.cmake+1-1| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | # LLVM_LIBRARIES |
| 8 | 8 | # LLVM_LIBDIRS |
| 9 | 9 | |
| 10 | find_program(LLVM_CONFIG_EXE NAMES llvm-config llvm-config-4) | |
| 10 | find_program(LLVM_CONFIG_EXE NAMES llvm-config llvm-config-4.0) | |
| 11 | 11 | |
| 12 | 12 | execute_process( |
| 13 | 13 | COMMAND ${LLVM_CONFIG_EXE} --libs |