summaryrefslogtreecommitdiffstats
path: root/test/CC/CCFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/CCFLAGS.py')
-rw-r--r--test/CC/CCFLAGS.py14
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'