summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-01-11 14:34:37 (GMT)
committerSteven Knight <knight@baldmt.com>2010-01-11 14:34:37 (GMT)
commitb9deb329b36baef65a2d85245d78a829de6c43da (patch)
treef8d0d45c11427252e9c9615b6d26f5f30f7db285 /bin
parent9bf4481e85bffa74d7b84ecd1a3e76b0df5a057b (diff)
downloadSCons-b9deb329b36baef65a2d85245d78a829de6c43da.zip
SCons-b9deb329b36baef65a2d85245d78a829de6c43da.tar.gz
SCons-b9deb329b36baef65a2d85245d78a829de6c43da.tar.bz2
Support missing visual C warnings when generating the documentation
examples. Because we use ToolSurrogates to generate the output (and do so on Linux), we don't actually need (or have) it installed.
Diffstat (limited to 'bin')
-rw-r--r--bin/sconsoutput.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/sconsoutput.py b/bin/sconsoutput.py
index f99ec5a..2c6e4d5 100644
--- a/bin/sconsoutput.py
+++ b/bin/sconsoutput.py
@@ -426,7 +426,12 @@ def command_scons(args, c, test, dict):
os.environ[key] = val
test.run(interpreter = sys.executable,
program = scons_py,
- arguments = '-f - ' + string.join(args),
+ # We use ToolSurrogates to capture win32 output by "building"
+ # examples using a fake win32 tool chain. Suppress the
+ # warnings that come from the new revamped VS support so
+ # we can build doc on (Linux) systems that don't have
+ # Visual C installed.
+ arguments = '--warn=no-visual-c-missing -f - ' + string.join(args),
chdir = test.workpath('WORK'),
stdin = Stdin % dict)
os.environ.update(save_vals)