try to use msvc with cmake on windows
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
language: cpp
 | 
			
		||||
dist: xenial
 | 
			
		||||
 | 
			
		||||
compiler:
 | 
			
		||||
  - clang
 | 
			
		||||
# compiler:
 | 
			
		||||
#  - clang
 | 
			
		||||
#   - gcc
 | 
			
		||||
 | 
			
		||||
os: osx
 | 
			
		||||
 
 | 
			
		||||
@@ -34,9 +34,9 @@ if osName == 'Linux':
 | 
			
		||||
 | 
			
		||||
sanitizerFlags = sanitizersFlags[sanitizer]
 | 
			
		||||
 | 
			
		||||
if osName == 'Windows':
 | 
			
		||||
    os.environ['CC'] = 'clang-cl'
 | 
			
		||||
    os.environ['CXX'] = 'clang-cl'
 | 
			
		||||
# if osName == 'Windows':
 | 
			
		||||
#     os.environ['CC'] = 'clang-cl'
 | 
			
		||||
#     os.environ['CXX'] = 'clang-cl'
 | 
			
		||||
 | 
			
		||||
cmakeCmd = 'cmake -DCMAKE_BUILD_TYPE=Debug {} {} ..'.format(generator, sanitizerFlags)
 | 
			
		||||
print(cmakeCmd)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user