summaryrefslogtreecommitdiffstats
path: root/test/YACCFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-05 00:04:32 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-05 00:04:32 (GMT)
commit246819663b8eaeb130580f4b97990248f26eaadd (patch)
treef9ca305b654b4d35be2ba9a59bc85f341b916ac4 /test/YACCFLAGS.py
parent08ecd797ee635637097196960ea6a90e8dd29d62 (diff)
downloadSCons-246819663b8eaeb130580f4b97990248f26eaadd.zip
SCons-246819663b8eaeb130580f4b97990248f26eaadd.tar.gz
SCons-246819663b8eaeb130580f4b97990248f26eaadd.tar.bz2
Fix the tests that broke from the tool auto-detect stuff. (Anthony Roach and SK)
Diffstat (limited to 'test/YACCFLAGS.py')
-rw-r--r--test/YACCFLAGS.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/YACCFLAGS.py b/test/YACCFLAGS.py
index 288696b..ba38209 100644
--- a/test/YACCFLAGS.py
+++ b/test/YACCFLAGS.py
@@ -34,8 +34,12 @@ python = sys.executable
if sys.platform == 'win32':
_exe = '.exe'
+ compiler = 'msvc'
+ linker = 'mslink'
else:
_exe = ''
+ compiler = 'gcc'
+ linker = 'gnulink'
test = TestSCons.TestSCons()
@@ -59,9 +63,9 @@ sys.exit(0)
""")
test.write('SConstruct', """
-env = Environment(YACC = r'%s myyacc.py', YACCFLAGS = '-x')
+env = Environment(YACC = r'%s myyacc.py', YACCFLAGS = '-x', tools=['yacc', '%s', '%s'])
env.Program(target = 'aaa', source = 'aaa.y')
-""" % python)
+""" % (python, linker, compiler))
test.write('aaa.y', r"""
int