[test-suite] r300343 - CMakeLists.txt: Abort if CMAKE_SIZEOF_VOID_P is not set
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 10:15:14 PDT 2017
Author: matze
Date: Fri Apr 14 12:15:14 2017
New Revision: 300343
URL: http://llvm.org/viewvc/llvm-project?rev=300343&view=rev
Log:
CMakeLists.txt: Abort if CMAKE_SIZEOF_VOID_P is not set
After a failed compiler detection in a previous run cmake cached the
result and would happily build a partially working test-suite. Add a
sanity check to catch the error early.
Modified:
test-suite/trunk/CMakeLists.txt
Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=300343&r1=300342&r2=300343&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Fri Apr 14 12:15:14 2017
@@ -55,6 +55,12 @@ This process created the file `CMakeCach
Please delete them.")
endif()
+# Sanity check SIZEOF_VOID_P. This is sometimes empty when compiler detection
+# failed, error out to avoid a mostly working but invalid setup.
+if(NOT CMAKE_SIZEOF_VOID_P)
+ message(FATAL_ERROR "CMAKE_SIZEOF_VOID_P is not defined")
+endif()
+
# Remote configuration (will be set in lit.site.cfg)
set(TEST_SUITE_REMOTE_CLIENT "ssh" CACHE STRING "Remote execution client")
set(TEST_SUITE_REMOTE_HOST "" CACHE STRING "Remote execution host")
More information about the llvm-commits
mailing list