try to use clang with cmake on windows

This commit is contained in:
Benjamin Sergeant 2019-01-27 12:00:43 -08:00
parent 0d80971328
commit 1b9e55d3f8

View File

@ -34,6 +34,10 @@ if osName == 'Linux':
sanitizerFlags = sanitizersFlags[sanitizer]
if osName == 'Windows':
os.environ['CC'] = 'clang-cl'
# os.environ['CXX'] = 'clang-cl'
cmakeCmd = 'cmake -DCMAKE_BUILD_TYPE=Debug {} {} ..'.format(generator, sanitizerFlags)
print(cmakeCmd)
ret = os.system(cmakeCmd)