summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-01-20 17:06:11 +0000
committerhallgren <hallgren@chalmers.se>2014-01-20 17:06:11 +0000
commit9d71ffc831164c7cba260d1bb3f0a968cca8c3e7 (patch)
treed5863a69c8cf55b9ade0a7b8dcd8665afcb1e015 /Setup.hs
parent801a20d27ad53b05ef67e540be343dfd2469deb0 (diff)
Optionally include C run-time support
If the C run-time library is compiled and installed on your system, you can now do 'cabal configure -fc-runtime' to get the following extras: + The haskell binding to the C run-time library will be included in the PGF library (so you can import it in Haskell applications). Documentation on the new modules will be included when you run 'cabal haddock'. + The new command 'pgf-shell', implemented on top of haskell binding to the C run-time system. + Three new commands in the web API: c-parse, c-linearize and c-translate. Their interfaces are similar to the corresponding commands without the "c-" prefix, but they should be considered preliminary.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Setup.hs b/Setup.hs
index 8085e50b6..ff1a6ada9 100644
--- a/Setup.hs
+++ b/Setup.hs
@@ -351,8 +351,12 @@ run_gfc pkg lbi args =
default_gf pkg lbi = buildDir lbi </> exeName' </> exeNameReal
where
+ exeName' = "gf"
+ exeNameReal = exeName' <.> exeExtension
+ {- --old solution, could pick the wrong executable if there is more than one
exeName' = (exeName . head . executables) pkg
exeNameReal = exeName' <.> (if null $ takeExtension exeName' then exeExtension else "")
+ -}
-- | Create autogen module with detailed version info by querying darcs
extractDarcsVersion distFlag =