[compiler-rt] r209248 - Run common and profile tests in cross-compiled builds.

Greg Fitzgerald gregf at codeaurora.org
Tue May 20 15:04:27 PDT 2014


Author: garious
Date: Tue May 20 17:04:27 2014
New Revision: 209248

URL: http://llvm.org/viewvc/llvm-project?rev=209248&view=rev
Log:
Run common and profile tests in cross-compiled builds.

Route target_cflags to common and profile tests

Modified:
    compiler-rt/trunk/test/profile/lit.cfg
    compiler-rt/trunk/test/sanitizer_common/lit.common.cfg

Modified: compiler-rt/trunk/test/profile/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/lit.cfg?rev=209248&r1=209247&r2=209248&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/lit.cfg (original)
+++ compiler-rt/trunk/test/profile/lit.cfg Tue May 20 17:04:27 2014
@@ -37,7 +37,7 @@ def build_invocation(compile_flags):
   return " " + " ".join([config.clang] + compile_flags) + " "
 
 # Add clang substitutions.
-config.substitutions.append( ("%clang ", build_invocation([])) )
+config.substitutions.append( ("%clang ", build_invocation(clang_cflags)) )
 config.substitutions.append( ("%clang_profgen ", build_invocation(clang_cflags) + " -fprofile-instr-generate ") )
 config.substitutions.append( ("%clang_profuse=", build_invocation(clang_cflags) + " -fprofile-instr-use=") )
 

Modified: compiler-rt/trunk/test/sanitizer_common/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/lit.common.cfg?rev=209248&r1=209247&r2=209248&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/lit.common.cfg (original)
+++ compiler-rt/trunk/test/sanitizer_common/lit.common.cfg Tue May 20 17:04:27 2014
@@ -14,7 +14,7 @@ elif config.tool_name == "msan":
 else:
   lit_config.fatal("Unknown tool for sanitizer_common tests: %r" % config.tool_name)
 
-clang_cflags = ["-g"] + tool_cflags
+clang_cflags = ["-g"] + tool_cflags + [config.target_cflags]
 clang_cxxflags = config.cxx_mode_flags + clang_cflags
 
 def build_invocation(compile_flags):





More information about the llvm-commits mailing list