[LLVMbugs] [Bug 9293] New: [CMake][Clang] TARGET_TRIPLE is not set on clang standalone build
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 22 20:22:16 PST 2011
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: unassignedbugs at nondot.org
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list