Disable asan if clang is mentioned in CC (like in 'ccache clang')

This commit is contained in:
Thom Wiggers 2020-11-18 09:27:46 +01:00
förälder 3e2c7b6b05
incheckning 7557be7471
Ingen känd nyckel hittad för denna signaturen i databasen
GPG-nyckel ID: 001BB0A7CE26E363

Visa fil

@ -54,7 +54,7 @@ def test_functest_sanitizers(implementation, impl_path, test_dir,
init, destr):
dest_dir = os.path.join(test_dir, 'bin')
env = None
if platform.machine() == 'ppc' and os.environ.get('CC', 'gcc') == 'clang':
if platform.machine() == 'ppc' and 'clang' in os.environ.get('CC', 'gcc'):
raise unittest.SkipTest("Clang does not support ASAN on ppc")
elif platform.machine() in ['armv7l', 'aarch64']:
env = {'ASAN_OPTIONS': 'detect_leaks=0'}