summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
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 =