Get the LLVMC tests working with clang++ by removing the problematic CXXFLAG in lit.

llvm-svn: 95318
This commit is contained in:
Benjamin Kramer 2010-02-04 18:40:11 +00:00
parent c42075a164
commit 72d36b59be
1 changed files with 5 additions and 0 deletions

View File

@ -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]))