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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user