[PATCH] D60091: [test-suite] Signal error if llvm-lit was not found
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 13:13:45 PDT 2019
lebedev.ri created this revision.
lebedev.ri added reviewers: MatzeB, homerdin.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
I'm not sure if that was intentional or not?
I found it quite surprising when trying to integrate a new external project.
Repository:
rT test-suite
https://reviews.llvm.org/D60091
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -90,7 +90,7 @@
mark_as_advanced(TEST_SUITE_LLVM_SIZE)
if(TEST_SUITE_LLVM_SIZE STREQUAL "TEST_SUITE_LLVM_SIZE-NOTFOUND")
message(FATAL_ERROR "llvm-size not found.
-Make sure it is in your path or set TEST_SUITE_COLLECT_CODE_SIZE to OFF")
+Make sure it is in your path or specify it via -DTEST_SUITE_LLVM_SIZE:FILEPATH=\"\" or set TEST_SUITE_COLLECT_CODE_SIZE to OFF")
endif()
endif()
@@ -107,7 +107,7 @@
mark_as_advanced(TEST_SUITE_LLVM_PROFDATA)
if(TEST_SUITE_LLVM_PROFDATA STREQUAL "TEST_SUITE_LLVM_PROFDATA-NOTFOUND")
message(FATAL_ERROR "llvm-profdata not found.
-Make sure it is in your path or set TEST_SUITE_PROFILE_GENERATE to OFF")
+Make sure it is in your path or specify it via -DTEST_SUITE_LLVM_PROFDATA:FILEPATH=\"\" or set TEST_SUITE_PROFILE_GENERATE to OFF")
endif()
set(TEST_SUITE_PROFILE_GENERATE "True")
@@ -216,7 +216,10 @@
find_program(TEST_SUITE_LIT NAMES "lit" "llvm-lit")
set(TEST_SUITE_LIT_FLAGS "-sv" CACHE STRING "Flags used when running lit")
mark_as_advanced(TEST_SUITE_LIT TEST_SUITE_LIT_FLAGS)
-mark_as_advanced(TEST_SUITE_LIT)
+if(TEST_SUITE_LIT STREQUAL "TEST_SUITE_LIT-NOTFOUND")
+ message(FATAL_ERROR "llvm-lit not found.
+Make sure it is in your path or specify it via -DTEST_SUITE_LIT:FILEPATH=\"\"")
+endif()
add_subdirectory(tools)
# Shortcut for the path to the fpcmp executable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60091.193160.patch
Type: text/x-patch
Size: 1492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190401/6c2a86d6/attachment.bin>
More information about the llvm-commits
mailing list