Run common and profile tests in cross-compiled builds.

Route target_cflags to common and profile tests

llvm-svn: 209248
This commit is contained in:
Greg Fitzgerald 2014-05-20 22:04:27 +00:00
parent 6883743fd8
commit 40a6401b1f
2 changed files with 2 additions and 2 deletions

View File

@ -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=") )

View File

@ -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):