summaryrefslogtreecommitdiff
path: root/test/MSVC/PCH-source.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/MSVC/PCH-source.py')
-rw-r--r--test/MSVC/PCH-source.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/MSVC/PCH-source.py b/test/MSVC/PCH-source.py
index df6d6b15..c3c0f2e3 100644
--- a/test/MSVC/PCH-source.py
+++ b/test/MSVC/PCH-source.py
@@ -41,6 +41,10 @@ if sys.platform != 'win32':
msg = "Skipping Visual C/C++ test on non-Windows platform '%s'\n" % sys.platform
test.skip_test(msg)
+import SCons.Tool.MSCommon as msc
+if not msc.msvc_exists():
+ msg = "No MSVC toolchain found...skipping test\n"
+ test.skip_test(msg)
test.write('SConstruct', """\
env = Environment(tools=['msvc', 'mslink'])