scons on windows その5(64bit build)

vc2010 express editionをwindows7(64bit)にインストールしている場合

import os

vs_path='C:\\Program Files (x86)\\Microsoft Visual Studio 10.0'
vc_path=vs_path+'\\VC'
sdk_path='C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1'

AddOption('--arch',
        type='string',
        nargs=1,
        )

if GetOption('arch')=='64':
    print '64bit build'
    env=Environment(
            ENV={
                'PATH': ';'.join([
                    vc_path+'\\BIN\\x86_amd64', # 64bit
                    vs_path+'\\Common7\\IDE',
                    ]),
                'INCLUDE': ';'.join([
                    vc_path+'\\INCLUDE',
                    sdk_path+'\\include',
                    ]),
                'LIB': ';'.join([
                    vc_path+'\\LIB\\amd64', # 64bit
                    sdk_path+'\\Lib\\x64', # 64bit
                    ]),
                },
            tools=['default', 'msvc']
            )
else:
    print '32bit build'
    env=Environment(
            ENV={
                'PATH': ';'.join([
                    vc_path+'\\BIN',
                    vs_path+'\\Common7\\IDE',
                    ]),
                'INCLUDE': ';'.join([
                    vc_path+'\\INCLUDE',
                    sdk_path+'\\include',
                    ]),
                'LIB': ';'.join([
                    vc_path+'\\LIB',
                    sdk_path+'\\Lib',
                    ]),
                },
            tools=['default', 'msvc']
            )


print 'MSVC_VERSION: %s' % env['MSVC_VERSION']
env['CCFLAGS']+=['/EHsc']
env.Program(target='hello', source=['hello.cpp'])
> scons --arch=64
scons: Reading SConscript files ...
64bit build
MSVC_VERSION: 10.0
scons: done reading SConscript files.
scons: Building targets ...
cl /Fohello.obj /c hello.cpp /TP /nologo /EHsc
hello.cpp
link /nologo /OUT:hello.exe hello.obj
scons: done building targets.