@@ -288,11 +288,6 @@ withExecuteEnv
288
288
setupO = setupSrcDir </> setupOName
289
289
setupHsExists <- doesFileExist setupHs
290
290
unless setupHsExists $ writeBinaryFileAtomic setupHs simpleSetupCode
291
- -- See https://github.com/commercialhaskell/stack/issues/6267. Remove any
292
- -- historical *.hi or *.o files. This can be dropped when Stack drops
293
- -- support for the problematic versions of GHC.
294
- ignoringAbsence (removeFile setupHi)
295
- ignoringAbsence (removeFile setupO)
296
291
let setupShimStub = " setup-shim-" ++ simpleSetupHash
297
292
setupShimFileName <- parseRelFile (setupShimStub ++ " .hs" )
298
293
setupShimHiName <- parseRelFile (setupShimStub ++ " .hi" )
@@ -303,12 +298,14 @@ withExecuteEnv
303
298
setupShimHsExists <- doesFileExist setupShimHs
304
299
unless setupShimHsExists $
305
300
writeBinaryFileAtomic setupShimHs setupGhciShimCode
301
+ setupExe <- getSetupExe setupHs setupShimHs tempDir
306
302
-- See https://github.com/commercialhaskell/stack/issues/6267. Remove any
307
303
-- historical *.hi or *.o files. This can be dropped when Stack drops
308
304
-- support for the problematic versions of GHC.
305
+ ignoringAbsence (removeFile setupHi)
306
+ ignoringAbsence (removeFile setupO)
309
307
ignoringAbsence (removeFile setupShimHi)
310
308
ignoringAbsence (removeFile setupShimO)
311
- setupExe <- getSetupExe setupHs setupShimHs tempDir
312
309
cabalPkgVer <- view cabalVersionL
313
310
globalDB <- view $ compilerPathsL . to (. globalDB)
314
311
let globalDumpPkgs = toDumpPackagesByGhcPkgId globalPackages
0 commit comments