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
  • Loading branch information
23Skidoo committed Jan 30, 2016
1 parent da8caf4 commit b453d30
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 @@ -568,7 +568,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''
, ghcOptHideAllPackages = Flag newPedanticDeps
, ghcOptCabal = Flag newPedanticDeps
Expand Down

0 comments on commit b453d30

Please sign in to comment.