diff options
| author | Greg Fitzgerald <gregf@codeaurora.org> | 2014-05-20 22:04:27 +0000 |
|---|---|---|
| committer | Greg Fitzgerald <gregf@codeaurora.org> | 2014-05-20 22:04:27 +0000 |
| commit | 40a6401b1f73810ead17e0966e591bf712e33b76 (patch) | |
| tree | b9e7f20157afaa28a63acb7ea8504fdef4311194 | |
| parent | 6883743fd8157e61a1f57759527d90c6d72107c6 (diff) | |
| download | bcm5719-llvm-40a6401b1f73810ead17e0966e591bf712e33b76.tar.gz bcm5719-llvm-40a6401b1f73810ead17e0966e591bf712e33b76.zip | |
Run common and profile tests in cross-compiled builds.
Route target_cflags to common and profile tests
llvm-svn: 209248
| -rw-r--r-- | compiler-rt/test/profile/lit.cfg | 2 | ||||
| -rw-r--r-- | compiler-rt/test/sanitizer_common/lit.common.cfg | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/profile/lit.cfg b/compiler-rt/test/profile/lit.cfg index e4d510c5f69..6e53b503365 100644 --- a/compiler-rt/test/profile/lit.cfg +++ b/compiler-rt/test/profile/lit.cfg @@ -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=") ) diff --git a/compiler-rt/test/sanitizer_common/lit.common.cfg b/compiler-rt/test/sanitizer_common/lit.common.cfg index 86c9d33d90d..b4a2f3cad26 100644 --- a/compiler-rt/test/sanitizer_common/lit.common.cfg +++ b/compiler-rt/test/sanitizer_common/lit.common.cfg @@ -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): |

