Skip to content

Commit

Permalink
Merge pull request #9244 from nlander/make-hie-subdir
Browse files Browse the repository at this point in the history
Put hie files in subdirectory of extra-compilation-artifacts
  • Loading branch information
mergify[bot] authored Sep 22, 2023
2 parents b3b8228 + fd3dcc3 commit bf6653e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Simple/GHC/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ componentGhcOptions verbosity implInfo lbi bi clbi odir =
, ghcOptFfiIncludes = toNubListR $ includes bi
, ghcOptObjDir = toFlag odir
, ghcOptHiDir = toFlag odir
, ghcOptHieDir = bool NoFlag (toFlag $ odir </> extraCompilationArtifacts) $ flagHie implInfo
, ghcOptHieDir = bool NoFlag (toFlag $ odir </> extraCompilationArtifacts </> "hie") $ flagHie implInfo
, ghcOptStubDir = toFlag odir
, ghcOptOutputDir = toFlag odir
, ghcOptOptimisation = toGhcOptimisation (withOptimization lbi)
Expand Down
2 changes: 1 addition & 1 deletion cabal-testsuite/PackageTests/CopyHie/cabal.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ main = withShorterPathForNewBuildStore $ \storeDir -> cabalTest $ withRepo "repo
cabalG ["--store-dir=" ++ storeDir] "v2-build" ["hie"]
liftIO $ do
installedDependencyLibDir <- findDependencyInStore storeDir "hie-dependency"
shouldExist $ installedDependencyLibDir </> "lib" </> "extra-compilation-artifacts" </> "HieDependency.hie"
shouldExist $ installedDependencyLibDir </> "lib" </> "extra-compilation-artifacts" </> "hie" </> "HieDependency.hie"
2 changes: 1 addition & 1 deletion cabal-testsuite/PackageTests/CopyHie/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ main = setupAndCabalTest $ withPackageDb $ do
skipUnlessGhcVersion ">= 8.8"
setup_install ["hie-local"]
env <- getTestEnv
shouldExist $ testLibInstallDir env </> "hie-local-0.1.0.0" </> "extra-compilation-artifacts" </> "HieLocal.hie"
shouldExist $ testLibInstallDir env </> "hie-local-0.1.0.0" </> "extra-compilation-artifacts" </> "hie" </> "HieLocal.hie"
Loading

0 comments on commit bf6653e

Please sign in to comment.