summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Fitzgerald <gregf@codeaurora.org>2014-05-14 00:46:01 +0000
committerGreg Fitzgerald <gregf@codeaurora.org>2014-05-14 00:46:01 +0000
commit320713ffbebdaa8538302c5a471cfee23763600d (patch)
treedf71d0b6e55aa0c108b0aa670b21cb68ab890104
parent07c88a16e878e86f5a941554555b8d99e514ab87 (diff)
downloadbcm5719-llvm-320713ffbebdaa8538302c5a471cfee23763600d.tar.gz
bcm5719-llvm-320713ffbebdaa8538302c5a471cfee23763600d.zip
Add target flags to ubsan tests
llvm-svn: 208746
-rw-r--r--compiler-rt/test/ubsan/lit.common.cfg2
-rw-r--r--compiler-rt/test/ubsan/lit.site.cfg.in1
2 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/test/ubsan/lit.common.cfg b/compiler-rt/test/ubsan/lit.common.cfg
index 61eec0341fa..a34a1910a79 100644
--- a/compiler-rt/test/ubsan/lit.common.cfg
+++ b/compiler-rt/test/ubsan/lit.common.cfg
@@ -28,6 +28,8 @@ else:
def build_invocation(compile_flags):
return " " + " ".join([config.clang] + compile_flags) + " "
+target_cflags = [get_required_attr(config, "target_cflags")]
+clang_ubsan_cflags += target_cflags
clang_ubsan_cxxflags = config.cxx_mode_flags + clang_ubsan_cflags
# Define %clang and %clangxx substitutions to use in test RUN lines.
diff --git a/compiler-rt/test/ubsan/lit.site.cfg.in b/compiler-rt/test/ubsan/lit.site.cfg.in
index ef72d2bbb42..6fac2a650ee 100644
--- a/compiler-rt/test/ubsan/lit.site.cfg.in
+++ b/compiler-rt/test/ubsan/lit.site.cfg.in
@@ -3,6 +3,7 @@ lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configu
# Tool-specific config options.
config.ubsan_lit_test_mode = "@UBSAN_LIT_TEST_MODE@"
+config.target_cflags = "@COMPILER_RT_TEST_COMPILER_CFLAGS@"
# Load tool-specific config that would do the real work.
lit_config.load_config(config, "@UBSAN_LIT_TESTS_DIR@/lit.common.cfg")
OpenPOWER on IntegriCloud