mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
WebSetup.hs: use the correct --gf-lib-path when building example grammars
The directory should be the same as the one used in Setup.hs when building the RGL, where a build directory supplied by cabal is used. This is usually dist/build/rgl, but it could be different, e.g. when using a cabal sandbox.
This commit is contained in:
@@ -68,7 +68,7 @@ setupWeb gf args dest pkg lbi =
|
|||||||
where
|
where
|
||||||
tmp_dir = gfo_dir</>tmp
|
tmp_dir = gfo_dir</>tmp
|
||||||
cmd = gf++" -make -s -optimize-pgf --gfo-dir="++tmp_dir++
|
cmd = gf++" -make -s -optimize-pgf --gfo-dir="++tmp_dir++
|
||||||
" --gf-lib-path=dist"</>"build"</>"rgl"++
|
" --gf-lib-path="++buildDir lbi </> "rgl"++
|
||||||
-- " --output-dir="++grammars_dir++ -- has no effect?!
|
-- " --output-dir="++grammars_dir++ -- has no effect?!
|
||||||
" "++src
|
" "++src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user