summaryrefslogtreecommitdiffstats
path: root/test/CC/SHCCFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CC/SHCCFLAGS.py')
-rw-r--r--test/CC/SHCCFLAGS.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/CC/SHCCFLAGS.py b/test/CC/SHCCFLAGS.py
index 1f4fd3d..316da0f 100644
--- a/test/CC/SHCCFLAGS.py
+++ b/test/CC/SHCCFLAGS.py
@@ -28,16 +28,13 @@ import sys
import TestSCons
import os
import string
-
-if sys.platform == 'win32':
- fooflags = '/nologo -DFOO'
- barflags = '/nologo -DBAR'
-else:
- fooflags = '-DFOO'
- barflags = '-DBAR'
test = TestSCons.TestSCons()
+e = test.Environment()
+fooflags = e['SHCCFLAGS'] + ' -DFOO'
+barflags = e['SHCCFLAGS'] + ' -DBAR'
+
if os.name == 'posix':
os.environ['LD_LIBRARY_PATH'] = '.'
if string.find(sys.platform, 'irix') > -1:
@@ -79,6 +76,8 @@ EXPORTS
""")
test.write('prog.c', r"""
+#include <stdio.h>
+
void
doIt()
{