# Setup default compiler flags used with -faddress-sanitizer option.
# FIXME: Review the set of required flags and check if it can be reduced.
-clang_asan_cxxflags = ("-ccc-clang-cxx "
- + "-ccc-cxx "
+clang_asan_cxxflags = ("-ccc-cxx "
+ "-faddress-sanitizer "
+ "-mno-omit-leaf-frame-pointer "
+ "-fno-omit-frame-pointer "
# Define %clang and %clangxx substitutions to use in test RUN lines.
config.substitutions.append( ("%clang ", (" " + config.clang + " ")) )
config.substitutions.append( ("%clangxx ", (" " + config.clang +
- " -ccc-clang-cxx -ccc-cxx ")) )
+ " -ccc-cxx ")) )
# Use ugly construction to explicitly prohibit "clang", "clang++" etc.
# in RUN lines.
+ "-pie "
+ "-lpthread "
+ "-ldl ")
-clang_tsan_cxxflags = "-ccc-clang-cxx -ccc-cxx " + clang_tsan_cflags
+clang_tsan_cxxflags = "-ccc-cxx " + clang_tsan_cflags
config.substitutions.append( ("%clangxx_tsan ", (" " + config.clang + " " +
clang_tsan_cxxflags + " ")) )
config.substitutions.append( ("%clang_tsan ", (" " + config.clang + " " +