diff options
author | Steven Knight <knight@baldmt.com> | 2009-02-09 21:11:28 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-02-09 21:11:28 (GMT) |
commit | 1e725d35dba7295ec9ee660f60f643abe0308fb3 (patch) | |
tree | ce7c38616011baa27542f66fb34a36f617d2e542 /src/engine/SCons/Tool/msvc.py | |
parent | d6374929b6addeceeabc611fdde346549cb3049b (diff) | |
download | SCons-1e725d35dba7295ec9ee660f60f643abe0308fb3.zip SCons-1e725d35dba7295ec9ee660f60f643abe0308fb3.tar.gz SCons-1e725d35dba7295ec9ee660f60f643abe0308fb3.tar.bz2 |
Add the $CCFLAGS variable to the $PCHCOM command line, and rearrange
the arguments so the /Fo is towards the beginning of the line
(like it is for $CCCOM, $CXXCOM, etc.).
Diffstat (limited to 'src/engine/SCons/Tool/msvc.py')
-rw-r--r-- | src/engine/SCons/Tool/msvc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/msvc.py b/src/engine/SCons/Tool/msvc.py index 19ebd9f..443e8b0 100644 --- a/src/engine/SCons/Tool/msvc.py +++ b/src/engine/SCons/Tool/msvc.py @@ -812,7 +812,7 @@ def generate(env): env['CXXFILESUFFIX'] = '.cc' env['PCHPDBFLAGS'] = SCons.Util.CLVar(['${(PDB and "/Yd") or ""}']) - env['PCHCOM'] = '$CXX $CXXFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS /c $SOURCES /Fo${TARGETS[1]} /Yc$PCHSTOP /Fp${TARGETS[0]} $CCPDBFLAGS $PCHPDBFLAGS' + env['PCHCOM'] = '$CXX /Fo${TARGETS[1]} $CXXFLAGS $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS /c $SOURCES /Yc$PCHSTOP /Fp${TARGETS[0]} $CCPDBFLAGS $PCHPDBFLAGS' env['BUILDERS']['PCH'] = pch_builder if not env.has_key('ENV'): |