From: Doug M. <mc...@ia...> - 2009-07-13 04:32:18
|
On Jul 7, 2009, at 9:51 AM, Doug McCorkle wrote: > > On Jul 7, 2009, at 8:24 AM, Patrick Hartling wrote: > >> Doug McCorkle wrote: >>> >>> [snip] >>> >>>>> >>>>> For now I have hacked GetPlatform and GetArch to return the >>>>> appropriate values for win64 builds but I am running into another >>>>> problem. It appears that the EnvironmentBuilder is specifically >>>>> configured for MSVS 8 which causes problems when trying to build >>>>> with >>>>> MSVS 9. Any thoughts on potential fixes? Can we use the default >>>>> behaviour of SCons 1.2.0 for MSVS builds and not support older >>>>> versions of SCons? Thanks. >>>> >>>> >>>> Oh, right, I forgot about that mess. Give the new SCons support a >>>> try. >>>> If it works, the hacks for Win64 and Visual C++ 8.0 should be >>>> removed. >>>> I don't see any reason to support older versions of SCons, but then >>>> again, I don't have the final say on that. >>>> >>> >>> Do you happen to know how build_env is initialized in the >>> SConstruct? I >>> see it exported and used but it never appears to be configured. >> >> Is it part of the Variants stuff? If not, then I don't know. > > I have something semi working with the latest point release of scons. > Unfortunately, it seems like the variant stuff and the multiple > environments floating around in sca is getting in the way of the new > access to msvs in scons. I should have a more detailed report in a day > or so. The issue is that the variables: MSVS_ARCH and MSVS_VERSION must be set before the Environment is created. When using variants this is done within the variant loop I believe. If the Environment is configured outside without using variants then things are a little more straight forward to correct. In general, the code that is in the msvs_misc function for the 64bit platform can be commented out. Also, there are problems with detecting whether the code is being run on a 64 bit platform. I have been unable to find a method that works other than to read registry values or environment variables. I found notes to this affect in the scons msvs common.py file as well. I think updating SCA to support msvc 8.0 and 9.0 for both 32 and 64 bit platforms would be fairly straight forward. Is it OK to require SCons 1.2.0 for SCA use? Doug |