[PATCH] D132314: [Polly] Don't use `llvm-config` anymore (in CMake sad path)
John Ericson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 19:47:23 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4c5114250bb7: [Polly] Don't use `llvm-config` anymore (in CMake sad path) (authored by Ericson2314).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132314/new/
https://reviews.llvm.org/D132314
Files:
polly/CMakeLists.txt
Index: polly/CMakeLists.txt
===================================================================
--- polly/CMakeLists.txt
+++ polly/CMakeLists.txt
@@ -20,14 +20,11 @@
# Sources available, too?
if (LLVM_BUILD_MAIN_SRC_DIR)
- set(LLVM_SOURCE_ROOT ${LLVM_BUILD_MAIN_SRC_DIR} CACHE PATH
- "Path to LLVM source tree")
+ set(default_llvm_src "${LLVM_BUILD_MAIN_SRC_DIR}")
else()
- execute_process(COMMAND "${LLVM_TOOLS_BINARY_DIR}/llvm-config" --src-root
- OUTPUT_VARIABLE MAIN_SRC_DIR
- OUTPUT_STRIP_TRAILING_WHITESPACE)
- set(LLVM_SOURCE_ROOT ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
+ set(default_llvm_src "${CMAKE_CURRENT_SOURCE_DIR}/../llvm")
endif()
+ set(LLVM_SOURCE_ROOT ${default_llvm_src} CACHE PATH "Path to LLVM source tree")
# Enable unit tests if available.
set(POLLY_GTEST_AVAIL 0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132314.455052.patch
Type: text/x-patch
Size: 857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/dc4958a3/attachment.bin>
More information about the llvm-commits
mailing list