[Scons-users] MSVC is broken for x86 builds on x64 hosts
Joseph C. Brill
jbrill at mindspring.com
Fri Mar 29 07:47:28 EDT 2019
Wrong thread. Sorry.
From: Joseph C. Brill [mailto:jbrill at mindspring.com]
Sent: Friday, March 29, 2019 7:04 AM
To: 'michael.hartmann at qtronic.de'; 'scons-users at scons.org'
Subject: RE: [Scons-users] MSVC is broken for x86 builds on x64 hosts
Out of curiosity, can the compilers be configured correctly directly from the command line?
For example for 12 and 14.0:
@rem 64-bit host, 32-bit target
call YOURPATH-TO-MSVC\VC\vcvarsall x86
I once had a problem setting up cross-compiling on x86 to x64 where the MSVS/MSVC install did not correctly populate the batch file for setting up the x64 (vcvarsx86_amd64.bat) environment. This was causing other tools to fail in a mysterious and hard to diagnose manner. I don't exactly remember, but I think there were environment variables that were not configured correctly that caused downstream and calling batch files and scripts to result in errors.
This happened for MSVC 2005 where the x64 bit compiler was added long after the x86 compiler was installed.
More information about the Scons-users