diff options
author | Dirk Baechle <dl9obn@darc.de> | 2012-12-18 20:27:01 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2012-12-18 20:27:01 (GMT) |
commit | 66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f (patch) | |
tree | 572754fc81a9a5239eee054407aa455ca8de5af4 /test/CC/CCFLAGS.py | |
parent | 02cae725ed116ae6cd996fe3bf5888f7f8f61b97 (diff) | |
download | SCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.zip SCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.tar.gz SCons-66e6ceeca3bfa6af0a367bf57dccb8a591e2a82f.tar.bz2 |
- fixes for MinGW under Windows, mainly skipping MSVS-specific tests
Diffstat (limited to 'test/CC/CCFLAGS.py')
-rw-r--r-- | test/CC/CCFLAGS.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/CC/CCFLAGS.py b/test/CC/CCFLAGS.py index e273bfd..069b429 100644 --- a/test/CC/CCFLAGS.py +++ b/test/CC/CCFLAGS.py @@ -27,12 +27,18 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import sys import TestSCons +_obj = TestSCons._obj + if sys.platform == 'win32': - _obj = '.obj' - fooflags = '/nologo -DFOO' - barflags = '/nologo -DBAR' + import SCons.Tool.MSCommon as msc + + if not msc.msvc_exists(): + fooflags = '-DFOO' + barflags = '-DBAR' + else: + fooflags = '/nologo -DFOO' + barflags = '/nologo -DBAR' else: - _obj = '.o' fooflags = '-DFOO' barflags = '-DBAR' |