Skip to content

Commit

Permalink
Fix vcvars_arch usage before assignment. (#6675)
Browse files Browse the repository at this point in the history
Fixes #6674
  • Loading branch information
rasjani committed Mar 13, 2020
1 parent d70e041 commit b8b3070
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conans/client/tools/win.py
Expand Up @@ -360,6 +360,7 @@ def vcvars_command(settings, arch=None, compiler_version=None, force=False, vcva
raise ConanException("compiler.version setting required for vcvars not defined")

# https://msdn.microsoft.com/en-us/library/f2ccy3wt.aspx
vcvars_arch = None
arch_setting = arch_setting or 'x86_64'
arch_build = settings.get_safe("arch_build") or detected_architecture()
if os_setting == 'WindowsCE':
Expand Down

0 comments on commit b8b3070

Please sign in to comment.