2019-06-10 21:12:43 +08:00
|
|
|
config.suffixes = ['.c', '.cpp', '.h', '.m', '.mm', '.S', '.s', '.f90', '.F90', '.f95',
|
2018-07-24 09:03:44 +08:00
|
|
|
'.cu', '.rs', '.cl', '.hip']
|
2013-11-16 14:20:17 +08:00
|
|
|
config.substitutions = list(config.substitutions)
|
|
|
|
config.substitutions.insert(0,
|
|
|
|
('%clang_cc1',
|
|
|
|
"""*** Do not use 'clang -cc1' in Driver tests. ***""") )
|
2015-06-25 03:30:36 +08:00
|
|
|
|
|
|
|
# Remove harmful environmental variables for clang Driver tests.
|
|
|
|
# Some might be useful for other tests so they are only removed here.
|
|
|
|
driver_overwrite_env_vars = ['MACOSX_DEPLOYMENT_TARGET',
|
|
|
|
'IPHONEOS_DEPLOYMENT_TARGET',
|
|
|
|
'SDKROOT', 'CCC_OVERRIDE_OPTIONS',
|
|
|
|
'CC_PRINT_OPTIONS', 'CC_PRINT_HEADERS',
|
|
|
|
'CC_LOG_DIAGNOSTICS']
|
|
|
|
|
|
|
|
for name in driver_overwrite_env_vars:
|
|
|
|
if name in config.environment:
|
|
|
|
del config.environment[name]
|