Skip to content

Commit 74f0d4a

Browse files
committed
Append .exe to fix helper lookup in win
1 parent f606584 commit 74f0d4a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/CabalHelper/Compiletime/Compile.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ compileHelper' CompHelperEnv {..} = do
134134
]
135135
appdir <- appCacheDir
136136
let cp@CompPaths {compExePath} = compPaths appdir cheProjLocalCacheDir comp
137-
helper_exists <- doesFileExist compExePath
137+
let compExePathExt = compExePath ++ exeExtension
138+
helper_exists <- doesFileExist compExePathExt
138139
rv <- if helper_exists
139140
then do
140-
vLog $ "helper already compiled, using exe: "++compExePath
141+
vLog $ "helper already compiled, using exe: "++compExePathExt
141142
return (Right compExePath)
142143
else do
143-
vLog $ "helper exe does not exist, compiling "++compExePath
144+
vLog $ "helper exe does not exist, compiling "++compExePathExt
144145
prepare >> compile cp comp
145146
return rv
146147

0 commit comments

Comments
 (0)