diff options
author | Steven Knight <knight@baldmt.com> | 2009-02-09 21:11:28 +0000 |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-02-09 21:11:28 +0000 |
commit | bc12526548c74ea1705aa425afd329179c53e156 (patch) | |
tree | ce7c38616011baa27542f66fb34a36f617d2e542 /test/MSVC | |
parent | 57d0864dc6d0ce125356b5eb76c4381edf361d0c (diff) | |
download | scons-bc12526548c74ea1705aa425afd329179c53e156.tar.gz |
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 'test/MSVC')
-rw-r--r-- | test/MSVC/msvc.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py index 4ad562c5..21e88d0f 100644 --- a/test/MSVC/msvc.py +++ b/test/MSVC/msvc.py @@ -24,6 +24,11 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +""" +Verify basic invocation of Microsoft Visual C/C++, including use +of a precompiled header with the $CCFLAGS variable. +""" + import os import sys import time @@ -43,7 +48,8 @@ test.write('SConstruct',""" import os env = Environment() env.Append(CPPPATH=os.environ.get('INCLUDE', ''), - LIBPATH=os.environ.get('LIB', '')) + LIBPATH=os.environ.get('LIB', ''), + CCFLAGS='/DPCHDEF') env['PDB'] = File('test.pdb') env['PCHSTOP'] = 'StdAfx.h' env['PCH'] = env.PCH('StdAfx.cpp')[0] @@ -92,6 +98,9 @@ test.write('StdAfx.h', ''' test.write('StdAfx.cpp', ''' #include "StdAfx.h" +#ifndef PCHDEF +this line generates an error if PCHDEF is not defined! +#endif ''') # Visual Studio 8 has deprecated the /Yd option and prints warnings |