diff options
author | Ray Molenkamp <github@lazydodo.com> | 2018-08-09 21:53:39 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2018-08-09 21:53:39 +0300 |
commit | 569e3640ef1fe6dd701cb8aad27516c029c57f40 (patch) | |
tree | 80dbf6d6d3e5f210d905c1a6382cb32921271fe0 | |
parent | 1282be0f8278d24809d1781713c5adcf0ef5e936 (diff) |
build_environment: move llvm/clang to ninja on windows.
-rw-r--r-- | build_files/build_environment/cmake/clang.cmake | 9 | ||||
-rw-r--r-- | build_files/build_environment/cmake/llvm.cmake | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/build_files/build_environment/cmake/clang.cmake b/build_files/build_environment/cmake/clang.cmake index b2e6da73793..699c38a293a 100644 --- a/build_files/build_environment/cmake/clang.cmake +++ b/build_files/build_environment/cmake/clang.cmake @@ -23,11 +23,20 @@ set(CLANG_EXTRA_ARGS -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_CONFIG=${LIBDIR}/llvm/bin/llvm-config ) + +if(WIN32) + set(CLANG_GENERATOR "Ninja") +else() + set(CLANG_GENERATOR "Unix Makefiles") +endif() + + ExternalProject_Add(external_clang URL ${CLANG_URI} DOWNLOAD_DIR ${DOWNLOAD_DIR} URL_HASH MD5=${CLANG_HASH} PREFIX ${BUILD_DIR}/clang + CMAKE_GENERATOR ${CLANG_GENERATOR} CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/clang ${DEFAULT_CMAKE_FLAGS} ${CLANG_EXTRA_ARGS} INSTALL_DIR ${LIBDIR}/clang ) diff --git a/build_files/build_environment/cmake/llvm.cmake b/build_files/build_environment/cmake/llvm.cmake index d6f1920a114..7390b1bf011 100644 --- a/build_files/build_environment/cmake/llvm.cmake +++ b/build_files/build_environment/cmake/llvm.cmake @@ -26,7 +26,7 @@ set(LLVM_EXTRA_ARGS ) if(WIN32) - set(LLVM_GENERATOR "NMake Makefiles") + set(LLVM_GENERATOR "Ninja") else() set(LLVM_GENERATOR "Unix Makefiles") endif() |