[PATCH] D124197: [CMake] Ensure correct extension for llvm-lit is used on Windows when LLVM_INSTALL_UTILS is enabled.
Vlad Vereschaka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 20:43:56 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8e442b341c3b: [CMake] Ensure correct extension for llvm-lit is used on Windows when… (authored by dgg5503, committed by vvereschaka).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124197/new/
https://reviews.llvm.org/D124197
Files:
llvm/cmake/modules/CMakeLists.txt
Index: llvm/cmake/modules/CMakeLists.txt
===================================================================
--- llvm/cmake/modules/CMakeLists.txt
+++ llvm/cmake/modules/CMakeLists.txt
@@ -135,7 +135,11 @@
# Generate a default location for lit
if (LLVM_INSTALL_UTILS AND 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()
get_config_exports_includes(LLVM LLVM_CONFIG_INCLUDE_EXPORTS)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124197.425959.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220429/412c13ed/attachment.bin>
More information about the llvm-commits
mailing list