Skip to content

Commit

Permalink
Update compiler.py to avoid error with msvc version
Browse files Browse the repository at this point in the history
  • Loading branch information
fredboudon authored Jul 7, 2023
1 parent ac6b52a commit 25e712c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openalea/sconsx/tools/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def option( self, opts):

if isinstance(platform, Win32):
opts.Add(EnumVariable('TARGET_ARCH', 'Target Architecture','amd64' if is_64bit_environment() else 'x86', allowed_values=('x86','amd64','i386','emt64','x86_64','ia64')))
opts.Add(EnumVariable('MSVC_VERSION', 'Version ','' if not is_conda() else get_default_msvc(), allowed_values=sorted(MsvcVersion.values())+['']))
opts.Add(EnumVariable('MSVC_VERSION', 'Version ','' if not is_conda() else get_default_msvc(), allowed_values=sorted(MsvcVersion.values())+['17.0','']))

def update(self, env):
""" Update the environment with specific flags """
Expand Down

0 comments on commit 25e712c

Please sign in to comment.