Fixed a bison problem

This commit is contained in:
Josh Yelon 2005-07-01 22:13:10 +00:00
parent d550d6c6ae
commit 385a56ee45
1 changed files with 4 additions and 2 deletions

View File

@ -1196,10 +1196,12 @@ def CompileBison(pre,dstc,dsth,src):
CopyFile(PREFIX+"/tmp/", "thirdparty/win-util/bison.simple")
bisonFullPath=os.path.abspath("thirdparty/win-util/bison.exe")
oslocalcmd(PREFIX+"/tmp", bisonFullPath+" -y -d -p " + pre + " " + fn)
CopyFile(dstc, PREFIX+"/tmp/y_tab.c")
CopyFile(dsth, PREFIX+"/tmp/y_tab.h")
if (COMPILER=="LINUXA"):
oslocalcmd(PREFIX+"/tmp", "bison -y -d -p "+pre+" "+fn)
CopyFile(dstc, PREFIX+"/tmp/y.tab.c")
CopyFile(dsth, PREFIX+"/tmp/y.tab.h")
CopyFile(dstc, PREFIX+"/tmp/y.tab.c")
CopyFile(dsth, PREFIX+"/tmp/y.tab.h")
updatefiledate(dstc)
updatefiledate(dsth)