Skip to content

Commit

Permalink
Actually use the component root
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Apr 15, 2020
1 parent 92ea21e commit d5b7fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HIE/Bios/Environment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ initSession ComponentOptions {..} = do
let opts_hash = B.unpack $ encode $ H.finalize $ H.updates H.init (map B.pack componentOptions)
cache_dir <- liftIO $ getCacheDir opts_hash
-- Add the user specified options to a fresh GHC session.
(df', targets) <- addCmdOpts "" componentOptions df
(df', targets) <- addCmdOpts componentRoot componentOptions df
void $ G.setSessionDynFlags
(disableOptimisation -- Compile with -O0 as we are not going to produce object files.
$ setIgnoreInterfacePragmas -- Ignore any non-essential information in interface files such as unfoldings changing.
Expand Down

0 comments on commit d5b7fc9

Please sign in to comment.