Commit 5f3f15f1 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Oleg Grenrus

Copy executables by default on windows.

parent 1a31242d
......@@ -140,6 +140,8 @@ import System.Directory
, removeFile, removeDirectory, copyFile )
import System.FilePath
( (</>), (<.>), takeDirectory, takeBaseName )
import System.Info
( os )
installCommand :: CommandUI ( ConfigFlags, ConfigExFlags, InstallFlags
......@@ -668,7 +670,12 @@ installExes verbosity baseCtx buildCtx platform compiler
where
overwritePolicy = fromFlagOrDefault NeverOverwrite $
cinstOverwritePolicy clientInstallFlags
installMethod = fromFlagOrDefault InstallMethodSymlink $
isWindows = System.Info.os == "mingw32"
defaultMethod
-- Copy since windows doesn't support symlinks by default
| isWindows = InstallMethodCopy
| otherwise = InstallMethodSymlink
installMethod = fromFlagOrDefault defaultMethod $
cinstInstallMethod clientInstallFlags
-- | Install any built library by adding it to the default ghc environment
......
......@@ -34,6 +34,7 @@
* Use `hackage-security-0.6`
([#6388](https://github.com/haskell/cabal/pull/6388))
* Other dependency upgrades
* On windows use copy as the default install method for executables
3.0.0.0 Mikhail Glushenkov <mikhail.glushenkov@gmail.com> August 2019
* `v2-haddock` fails on `haddock` failures (#5977)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment