%INCLUDE% and %LIB% aren't set.
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3438
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
test.write('src/SConscript',"""\r
import os\r
env = Environment()\r
-env.Append(CPPPATH=os.environ['INCLUDE'],\r
- LIBPATH=os.environ['LIB'])\r
+env.Append(CPPPATH=os.environ.get('INCLUDE', ''),\r
+ LIBPATH=os.environ.get('LIB', ''))\r
env['PCH'] = 'StdAfx.pch'\r
env['PDB'] = '#out/test.pdb'\r
env['PCHSTOP'] = 'StdAfx.h'\r
test.write('SConstruct',"""
import os
env = Environment()
-env.Append(CPPPATH=os.environ['INCLUDE'],
- LIBPATH=os.environ['LIB'])
+env.Append(CPPPATH=os.environ.get('INCLUDE', ''),
+ LIBPATH=os.environ.get('LIB', ''))
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = 'StdAfx.h'
env['PCH'] = env.PCH('StdAfx.cpp')[0]