Fix setting arch flags on Windows builds.

This commit is contained in:
Scott Ehlert 2017-09-16 04:06:01 -05:00
parent e37083888e
commit bd48878986

View File

@ -91,9 +91,9 @@ def SetArchFlags(compiler, arch, platform):
if platform == 'mac':
compiler.linkflags = ['-arch', 'x86_64']
elif compiler.like('msvc'):
if builder.target.arch == 'x86':
if arch == 'x86':
compiler.linkflags += ['/MACHINE:X86']
elif builder.target.arch == 'x86_64':
elif arch == 'x86_64':
compiler.linkflags += ['/MACHINE:X64']
def AppendArchSuffix(binary, name, arch):