We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1a6ced + d03137e commit a6b99b8Copy full SHA for a6b99b8
Cabal/src/Distribution/PackageDescription/Check/Target.hs
@@ -825,9 +825,10 @@ checkGHCOptions title t opts = do
825
checkFlags
826
["-prof"]
827
(PackageBuildWarning $ OptProf title)
828
- -- Does not apply to scripts.
829
- -- Why do we need this? See #8963.
830
pid <- asksCM (pnPackageId . ccNames)
+ -- Scripts add the -o flag in the fake-package.cabal in order to have the
+ -- executable name match the script name even when there are characters
831
+ -- in the script name which are illegal to have as a target name.
832
unless (pid == fakePackageId) $
833
834
["-o"]
0 commit comments