[Scons-users] Which is the earliest scons version supporting VC++10?

Saurabh Bhatnagar saurabh.b.bhatnagar at oracle.com
Mon Dec 24 05:26:22 EST 2012


Well the query is actually in my subject.

To detect the new compiler, I need to know which scons env variable to trap.



Now we need to support 2 Microsoft c++ compilers(vc10 and vc6) on the same OS(windows 2003 server).



--
Warm Regards,

From: William Deegan [mailto:bill at baddogconsulting.com]
Sent: Thursday, December 20, 2012 11:42 PM
To: SCons users mailing list
Subject: Re: [Scons-users] Which is the earliest scons version supporting VC++10?



Saurabh,



The code below looks like your own code and not SCons code so there's no reasonable way we can comment on it..

Plus your text below doesn't seem to be related to your subject..?



-Bill

On Dec 20, 2012, at 12:42 AM, Saurabh Bhatnagar <HYPERLINK "mailto:saurabh.b.bhatnagar at oracle.com"saurabh.b.bhatnagar at oracle.com> wrote:





Hi Users,

We are upgrading to VC++10(32 ,64), but need to support builds using VC7(32 bit) and VC8(64bit).



We have modified existing compiler detection scons custom code using

msvc_ver=env['MSVC_COMPILER']



Is this the right variable or do we have some other more accurate variable like CXX that has value like 10?



def DevDetectPlatform(env):

""" Autodetect current platform.

scons plat=PLAT will overide it.

"""

plat=ARGUMENTS.get('plat', None)

cc=ARGUMENTS.get('cc', None)

bit=ARGUMENTS.get('bit', '32')



if not (plat):

#We do not use environment platform anymore

if (os.environ.get('PLAT',None)):

print ("scons: WARNING: Ignoring system environment PLAT=%s" %os.environ.get('PLAT',None))

# figure out using the machine information

if (sys.platform == 'win32'):

(major,minor,build,platform,pack)=sys.getwindowsversion()

#WIN2K

if (major == 5 and minor == 0):

plat='NT40_INTEL'

#XP or WIN2003, set both as for 2003

#use V10 for all VC++10, V8 for 64 and V7 for 32

elif (major == 5 and (minor == 1 or minor == 2)):

plat='WIN2K3'

#there is another env variable named close to this, may want to change this

msvc_ver=env['MSVC_COMPILER']

if msvc_ver == '10':

cc='V10'

elif bit == '64':

cc='V8'

elif bit == '32':

cc='V7'





--
Warm Regards,



_______________________________________________
Scons-users mailing list
HYPERLINK "mailto:Scons-users at scons.org"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/20121224/9192c0fb/attachment.htm>


More information about the Scons-users mailing list