From: stevenknight Date: Mon, 11 Jan 2010 14:34:37 +0000 (+0000) Subject: Support missing visual C warnings when generating the documentation X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b0171fe93f0503ee4946a2b59f708bfe34d50797;p=scons.git 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. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4607 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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)