config.environment['PATH'] = path
llvmgcc_dir = getattr(config, 'llvmgcc_dir', None)
- if not llvm_tools_dir:
- lit.fatal('No llvm-gcc dir set!')
if llvmgcc_dir:
path = os.path.pathsep.join((os.path.join(llvmgcc_dir, 'bin'),
config.environment['PATH']))
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]))