summaryrefslogtreecommitdiff
path: root/test/MSVC
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-11-30 13:47:11 +0000
committerSteven Knight <knight@baldmt.com>2009-11-30 13:47:11 +0000
commit71f3e243abe0b920f4e35dc5e94b50eae963a43d (patch)
tree52895e9e2da651f1f63c43d33e07e0fd562591eb /test/MSVC
parentd255f8134ef3b1dc4a964d172b31deb3853512f7 (diff)
downloadscons-71f3e243abe0b920f4e35dc5e94b50eae963a43d.tar.gz
Explicitly initialize the environment tools=['mssdk', 'msvc', 'mslink']
to get the path to the SDK include directory (so our test program can #include <windows.h>).
Diffstat (limited to 'test/MSVC')
-rw-r--r--test/MSVC/hierarchical.py4
-rw-r--r--test/MSVC/msvc.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/test/MSVC/hierarchical.py b/test/MSVC/hierarchical.py
index 6b4f007c..f1308069 100644
--- a/test/MSVC/hierarchical.py
+++ b/test/MSVC/hierarchical.py
@@ -49,7 +49,9 @@ SConscript('build/SConscript')
test.write('src/SConscript',"""
import os
-env = Environment()
+# TODO: this is order-dependent (putting 'mssdk' second or third breaks),
+# and ideally we shouldn't need to specify the tools= list anyway.
+env = Environment(tools=['mssdk', 'msvc', 'mslink'])
env.Append(CPPPATH=os.environ.get('INCLUDE', ''),
LIBPATH=os.environ.get('LIB', ''))
env['PCH'] = 'StdAfx.pch'
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py
index e28a87f7..106aed9e 100644
--- a/test/MSVC/msvc.py
+++ b/test/MSVC/msvc.py
@@ -45,7 +45,9 @@ if sys.platform != 'win32':
test.write('SConstruct',"""
import os
-env = Environment()
+# TODO: this is order-dependent (putting 'mssdk' second or third breaks),
+# and ideally we shouldn't need to specify the tools= list anyway.
+env = Environment(tools=['mssdk', 'msvc', 'mslink'])
env.Append(CPPPATH=os.environ.get('INCLUDE', ''),
LIBPATH=os.environ.get('LIB', ''),
CCFLAGS='/DPCHDEF')