diff options
Diffstat (limited to 'lib/ubsan/lit_tests/lit.cfg')
-rw-r--r-- | lib/ubsan/lit_tests/lit.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ubsan/lit_tests/lit.cfg b/lib/ubsan/lit_tests/lit.cfg index 6714a56c..4a5bc237 100644 --- a/lib/ubsan/lit_tests/lit.cfg +++ b/lib/ubsan/lit_tests/lit.cfg @@ -49,8 +49,10 @@ if llvm_src_root is None: lit_config.load_config(config, ubsan_site_cfg) raise SystemExit -# Define %clang substitution to use in test RUN lines. +# Define %clang and %clangxx substitutions to use in test RUN lines. config.substitutions.append( ("%clang ", (" " + config.clang + " ")) ) +config.substitutions.append( ("%clangxx ", (" " + config.clang + + " --driver-mode=g++ ")) ) # Default test suffixes. config.suffixes = ['.c', '.cc', '.cpp'] |