From a7e8a566cf722f0a1e9685303cc1444e9d121105 Mon Sep 17 00:00:00 2001 From: hallgren Date: Thu, 21 May 2015 14:44:20 +0000 Subject: [PATCH] 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. --- WebSetup.hs | 2 +- examples/foods/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WebSetup.hs b/WebSetup.hs index 629d34327..0f2d24b7d 100644 --- a/WebSetup.hs +++ b/WebSetup.hs @@ -48,7 +48,7 @@ buildWeb gf (flags,pkg,lbi) = where tmp_dir = gfo_dirsubdir 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, diff --git a/examples/foods/Makefile b/examples/foods/Makefile index 5738bc281..5f42041ae 100644 --- a/examples/foods/Makefile +++ b/examples/foods/Makefile @@ -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