diff options
-rw-r--r-- | test/lit.cfg | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 3b45bf9bd3..0894d9b38a 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -114,6 +114,11 @@ for sub in ['llvmgcc', 'llvmgxx', 'compile_cxx', 'compile_c', if sub in ('llvmgcc', 'llvmgxx'): config.substitutions.append(('%' + sub, site_exp[sub] + ' -emit-llvm -w')) + # FIXME: This is a hack to avoid LLVMC tests failing due to a clang driver + # warning when passing in "-fexceptions -fno-exceptions". + elif sub == 'compile_cxx': + config.substitutions.append(('%' + sub, + site_exp[sub].replace('-fno-exceptions', ''))) else: config.substitutions.append(('%' + sub, site_exp[sub])) |