Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atafra committed Nov 1, 2024
1 parent 791b4b8 commit 0a45f08
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,7 @@ def check_symbols_linux(filename):
config_cmd += f' -D CMAKE_C_COMPILER:FILEPATH="{cc}"'
config_cmd += f' -D CMAKE_CXX_COMPILER:FILEPATH="{cxx}"'
else:
msbuild = True
if cfg.compiler == 'default':
cfg.compiler = 'msvc17'
for compiler in cfg.compiler.split('-'):
if compiler.startswith('msvc'):
msvc_arch = {'x86_64': 'x64', 'arm64': 'ARM64'}[ARCH]
config_cmd += {'msvc15' : ' -G "Visual Studio 15 2017 Win64"',
'msvc16' : f' -G "Visual Studio 16 2019" -A {msvc_arch}',
'msvc17' : f' -G "Visual Studio 17 2022" -A {msvc_arch}'}[compiler]
elif compiler.startswith('icc'):
icc_version = {'18' : '18.0', '19' : '19.0', '20' : '19.1', '21' : '19.2'}[compiler[3:]]
config_cmd += f' -T "Intel C++ Compiler {icc_version}"'
config_cmd += ' -G Ninja'
else:
if OS == 'linux':
config_cmd += ' -G Ninja'
Expand Down

0 comments on commit 0a45f08

Please sign in to comment.