aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper
diff options
context:
space:
mode:
authorjneira <atreyu.bbb@gmail.com>2020-05-15 07:34:34 +0200
committerDaniel Gröber (dxld) <dxld@darkboxed.org>2020-05-20 09:42:02 +0200
commit8b51b51e90458b226e68fd8a1785f28252d58325 (patch)
treecfbee3d399ae84beb577600908187b107284cbfe /src/CabalHelper
parent1af155e04faa1ad0530c273efda9c2fbf10705fe (diff)
Add .exe in win to cabal-helper executable
Diffstat (limited to 'src/CabalHelper')
-rw-r--r--src/CabalHelper/Compiletime/Compile.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CabalHelper/Compiletime/Compile.hs b/src/CabalHelper/Compiletime/Compile.hs
index e5d7dcd..faf674a 100644
--- a/src/CabalHelper/Compiletime/Compile.hs
+++ b/src/CabalHelper/Compiletime/Compile.hs
@@ -327,7 +327,7 @@ compPaths appdir proj_local_cachedir c =
compBuildDir =
appdir </> exeName compCabalVersion ++ "--" ++ sourceHash <.> "build"
compOutDir = compBuildDir
- compExePath = compBuildDir </> "cabal-helper"
+ compExePath = compBuildDir </> "cabal-helper" <.> exeExtension
CompileWithCabalPackage {compProductTarget=CPSProject} ->
projLocalCachedirPaths
CompileWithCabalSource {} ->
@@ -337,7 +337,7 @@ compPaths appdir proj_local_cachedir c =
where
compBuildDir = proj_local_cachedir </> "cabal-helper"
compOutDir = compBuildDir
- compExePath = compOutDir </> "cabal-helper"
+ compExePath = compOutDir </> "cabal-helper" <.> exeExtension
exeName :: ResolvedCabalVersion -> String
exeName (CabalHEAD commitid) = intercalate "--"