summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2008-08-14 23:33:59 (GMT)
committerGreg Noel <GregNoel@tigris.org>2008-08-14 23:33:59 (GMT)
commit709f13823dd52c40dd3ae3f0aacc9c193dcebd45 (patch)
treeec33c3407731afa1ad3b8df6b9c03cd40d6637c6 /test
parent29f24368b0b236f816e6bc124547c1a155c00ad6 (diff)
downloadSCons-709f13823dd52c40dd3ae3f0aacc9c193dcebd45.zip
SCons-709f13823dd52c40dd3ae3f0aacc9c193dcebd45.tar.gz
SCons-709f13823dd52c40dd3ae3f0aacc9c193dcebd45.tar.bz2
Issue 2162: YACC fix for OS X
Diffstat (limited to 'test')
-rw-r--r--test/YACC/live.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/YACC/live.py b/test/YACC/live.py
index 3c5050e..88cbafb 100644
--- a/test/YACC/live.py
+++ b/test/YACC/live.py
@@ -56,7 +56,7 @@ yacc = foo.Dictionary('YACC')
bar = Environment(YACC = r'%(_python_)s wrapper.py ' + yacc)
foo.Program(target = 'foo', source = 'foo.y')
bar.Program(target = 'bar', source = 'bar.y')
-foo.Program(target = 'hello', source = ['hello.cpp'])
+foo.Program(target = 'hello', source = ['hello.cpp'])
foo.CXXFile(target = 'file.cpp', source = ['file.yy'], YACCFLAGS='-d')
foo.CFile(target = 'not_foo', source = 'foo.y')
""" % locals())
@@ -103,11 +103,14 @@ graph: GRAPH_T
%%
""")
-import sys
-if sys.platform[:6] == 'darwin':
- file_hpp = 'file.cpp.h'
-else:
- file_hpp = 'file.hpp'
+# Apparently, OS X now creates file.hpp like everybody else
+# I have no idea when it changed; it was fixed in 10.4
+#import sys
+#if sys.platform[:6] == 'darwin':
+# file_hpp = 'file.cpp.h'
+#else:
+# file_hpp = 'file.hpp'
+file_hpp = 'file.hpp'
test.write("hello.cpp", """\
#include "%(file_hpp)s"