http://llvm.org/bugs/show_bug.cgi?id=9293
Summary: [CMake][Clang] TARGET_TRIPLE is not set on clang
standalone build
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
It seems Clang standalone build does not run config-ix.
Clang tests rely on TARGET_TRIPLE to exclude some tests on certain hosts.
(eg. some tests are maked as "XFAIL: win32" and tests expect "*-win32" as
triplet.
FYI I am checking clang standalone build with setting CLANG_PATH_TO_LLVM_BUILD
to "Installed" LLVM.
Dirty workaround;
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,6 +51,10 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib )
+ # FIXME: Do you need config-ix?
+ set(TARGET_TRIPLE "unknown-unknown-unknown" CACHE STRING
+ "Set manually for tests.")
+
set( CLANG_BUILT_STANDALONE 1 )
# Add dummy target
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs