summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-01-11 14:34:37 +0000
committerSteven Knight <knight@baldmt.com>2010-01-11 14:34:37 +0000
commit561659ea7c18f7f8adb463e463ca7a44db97b104 (patch)
treef8d0d45c11427252e9c9615b6d26f5f30f7db285 /bin
parent2c8758409ba33c765868ca956d12acbcef211e01 (diff)
downloadscons-561659ea7c18f7f8adb463e463ca7a44db97b104.tar.gz
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 f99ec5a3..2c6e4d5f 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)