[PATCH] D79144: [CMake] Provide a proper default location for llvm-lit for out-of-tree users on Windows host.
Vlad Vereschaka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 17:28:14 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcad1cbc4bcf8: [CMake] Provide a proper default location for llvm-lit for out-of-tree users on… (authored by vvereschaka).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79144/new/
https://reviews.llvm.org/D79144
Files:
llvm/cmake/modules/CMakeLists.txt
Index: llvm/cmake/modules/CMakeLists.txt
===================================================================
--- llvm/cmake/modules/CMakeLists.txt
+++ llvm/cmake/modules/CMakeLists.txt
@@ -56,7 +56,11 @@
# Generate a default location for lit
if (LLVM_BUILD_UTILS)
- set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit")
+ if (CMAKE_HOST_WIN32 AND NOT CYGWIN)
+ set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit.py")
+ else()
+ set(LLVM_CONFIG_DEFAULT_EXTERNAL_LIT "${LLVM_CONFIG_TOOLS_BINARY_DIR}/llvm-lit")
+ endif()
endif()
if (LLVM_LINK_LLVM_DYLIB)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79144.261585.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200502/9c5143f7/attachment.bin>
More information about the llvm-commits
mailing list