1
0
forked from GitHub/gf-core

Omit -optimize-pgf when compiling small example grammars

The minibar lets the user choose any category as the start category, but this
can lead to run-time errors for grammars compiled with -optimize-pgf.

The problem can also be observed in the GF shell. For example, 
"linearize Fish" (which means that the start category is Kind) fails for 
some languages when Foods.pgf is compiled with -optimize-pgf.
This commit is contained in:
hallgren
2015-05-21 14:44:20 +00:00
parent 8039633528
commit a7e8a566cf
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ buildWeb gf (flags,pkg,lbi) =
where
tmp_dir = gfo_dir</>subdir
dir = "examples"</>subdir
args = numJobs flags++["-make","-s","-optimize-pgf"]
args = numJobs flags++["-make","-s"] -- ,"-optimize-pgf"
++["--gfo-dir="++tmp_dir,
"--gf-lib-path="++buildDir lbi </> "rgl",
"--name="++dropExtension pgf,

View File

@@ -2,7 +2,7 @@
all:: Foods.pgf
Foods.pgf: Foods???.gf
gf -make -s -optimize-pgf Foods???.gf
gf -make -s Foods???.gf
clean:
rm -rf *.gfo Foods.pgf