Skip to content
Snippets Groups Projects
Commit 0e637304 authored by GregoryCollins's avatar GregoryCollins
Browse files

Windows: generate the .exe extension even if the executable name contains a dot.

Fixes #711. (Hopefully)
parent 93441f4b
No related branches found
No related tags found
No related merge requests found
......@@ -814,7 +814,9 @@ buildExe verbosity _pkg_descr lbi
-- exeNameReal, the name that GHC really uses (with .exe on Windows)
let exeNameReal = exeName' <.>
(if null $ takeExtension exeName' then exeExtension else "")
(if takeExtension exeName' /= exeExtension
then exeExtension
else "")
let targetDir = pref </> exeName'
let exeDir = targetDir </> (exeName' ++ "-tmp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment