On Fri, Jun 15, 2012 at 11:12 AM, Edward d'Auvergne <[email protected]> wrote: > If you like though, I > can add a warning to my proposed changes through the > SCons.Warnings.warn() system stating that scons is falling back to the > 32-bit compiler.
Grumble... this is of course a good idea, EXCEPT that on Windows the Visual Studio tools are run by default whether you're actually using them or not. So people using SCons for LaTeX (for example) would see this warning, even though they don't care at all about C/C++ programs. We have a project to revamp how Tools are created and used which would address this, but it's a big job. (http://www.scons.org/wiki/PlatformToolConfigAlt and http://www.scons.org/wiki/PlatformToolConfig) It might be OK just to give your warning in the case where you're on a 64 bit system, so TARGET_ARCH has defaulted to 64 bit, but you have only 32 bit MSVC (but say nothing if you have no MSVC at all). But perhaps it would be better to not default TARGET_ARCH so early, so we could tell what the user's intent is -- if they don't specify TARGET_ARCH, try all. That's kind of what you're looking for, right? (though in your particular case, you'd probably rather it never produce a 64-bit build). -- Gary _______________________________________________ Scons-dev mailing list [email protected] http://two.pairlist.net/mailman/listinfo/scons-dev
