[compiler-rt] r208746 - Add target flags to ubsan tests

Greg Fitzgerald gregf at codeaurora.org
Tue May 13 17:46:01 PDT 2014


Author: garious
Date: Tue May 13 19:46:01 2014
New Revision: 208746

URL: http://llvm.org/viewvc/llvm-project?rev=208746&view=rev
Log:
Add target flags to ubsan tests

Modified:
    compiler-rt/trunk/test/ubsan/lit.common.cfg
    compiler-rt/trunk/test/ubsan/lit.site.cfg.in

Modified: compiler-rt/trunk/test/ubsan/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.common.cfg?rev=208746&r1=208745&r2=208746&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan/lit.common.cfg Tue May 13 19:46:01 2014
@@ -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.

Modified: compiler-rt/trunk/test/ubsan/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/lit.site.cfg.in?rev=208746&r1=208745&r2=208746&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/lit.site.cfg.in (original)
+++ compiler-rt/trunk/test/ubsan/lit.site.cfg.in Tue May 13 19:46:01 2014
@@ -3,6 +3,7 @@ lit_config.load_config(config, "@COMPILE
 
 # 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")





More information about the llvm-commits mailing list