Skip to content

Commit

Permalink
Only Custom setup scripts should be compiled with '-i -i.'.
Browse files Browse the repository at this point in the history
See #3003 (comment).

(cherry picked from commit b453d30)
  • Loading branch information
23Skidoo committed Jan 30, 2016
1 parent 847387e commit 1676b6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cabal-install/Distribution/Client/SetupWrapper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ externalSetupMethod verbosity options pkg bt mkargs = do
, ghcOptObjDir = Flag setupDir
, ghcOptHiDir = Flag setupDir
, ghcOptSourcePathClear = Flag True
, ghcOptSourcePath = toNubListR [workingDir]
, ghcOptSourcePath = case bt of
Custom -> toNubListR [workingDir]
_ -> mempty
, ghcOptPackageDBs = usePackageDB options''
, ghcOptPackages = toNubListR $
maybe [] (\ipkgid -> [(ipkgid, cabalPkgid, defaultRenaming)])
Expand Down

0 comments on commit 1676b6c

Please sign in to comment.