[Scons-users] Switch off detection of Visual Studio version?

William Deegan bill at baddogconsulting.com
Wed Sep 5 12:52:51 EDT 2012


Anders,

Are you explicitly telling SCons via the tools argument in the Environment() initialization which tools you want it to configure?
Or are you left that default and then setting the CC,etc..?

-Bill
On Sep 5, 2012, at 6:47 AM, Anders Stenman <Anders.Stenman at NiraDynamics.se> wrote:


> Every Scons script we have invokes an initialization module that sets up the compiler and linker

>

> env['CC'] = 'icl'

> env['LINK'] = 'xilink'

> env.Append(CCFLAGS= … )

>

> The things that are picked up from Visual Studio are the INCLUDE, LIB and PATH settings.

>

> /Anders

>

>

> Från: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] För William Deegan

> Skickat: den 5 september 2012 08:28

> Till: scons-users at scons.org

> Ämne: Re: [Scons-users] Switch off detection of Visual Studio version?

>

> On 08/30/2012 11:38 PM, Anders Stenman wrote:

> Yes, we are normally copying os.environ into the Scons environment, e.g.,

>

> env = Environment(variables=opts, ENV=os.environ, TARGET_ARCH='X86')

>

> So when you configure as you specified, what command does the compiling?

> intel's compiler of visual studio?

> What get's picked up from visual studio?

>

> You may want to search for "intelc" here: http://scons.org/doc/production/HTML/scons-man.html

> And then tune the list of tools which are initialized explicitly.

> tools=['intelc','...

> (as an argument to Environment())

>

> -Bill

>

>

> /Anders

>

> Från: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] För William Deegan

> Skickat: den 31 augusti 2012 08:31

> Till: SCons users mailing list

> Ämne: Re: [Scons-users] Switch off detection of Visual Studio version?

>

> Anders,

>

> On Aug 30, 2012, at 11:18 PM, Anders Stenman <Anders.Stenman at NiraDynamics.se> wrote:

>

>

>

> Thank you for the answer. I sort of knew that already but my question is still if it is possible to turn off the automatic detection. We are using the Intel C++ Compiler on top of Visual Studio, and then we use the Intel setup tools to configure the environment, e.g.,

>

> iclvars ia32 vs2005

>

> specifies use VS 2005, and

>

> iclvars is32 vs2010

>

> specifies VS 2010. The iclvars script sets the include and library paths, and then I do not want scons to mess up those.

>

> SCons by design doesn't copy environment variables from the shell it's invoked in (for the most part).

> Users can override this by copying os.environ into their Environment()'s env['env']..

>

> Basically I wouldn't expect SCons to pick up the result of the above command lines.

>

> I don't know much about the way intelc is initialized either in SCons or in the shell perhaps someone else can comment on that.

>

>

> Hope that helps,

> -Bill

>

>

>

>

> /Anders

>

> Från: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] För Gary Oberbrunner

> Skickat: den 30 augusti 2012 19:39

> Till: SCons users mailing list

> Ämne: Re: [Scons-users] Switch off detection of Visual Studio version?

>

>

>

> On Thu, Aug 30, 2012 at 11:01 AM, Anders Stenman <Anders.Stenman at niradynamics.se> wrote:

> Hello,

>

> Is it possible to switch off the automatic detection of Visual Studio version? This has confused me during the day when I installed VS 2010 in parallel with VS 2005, and wanted VS 2005 to be the default. (We are using the Intel Compiler where the environment is setup and controlled using an iclvars script).

>

> Just set MSVC_VERSION when constructing the Environment. Example: http://stackoverflow.com/questions/3079344/forcing-scons-to-use-older-compiler

>

> --

> Gary

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

>

>

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120905/0e08a35e/attachment-0001.htm>


More information about the Scons-users mailing list