Commit 562eaa3d authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Don't pass -package-db and -package flags to --abi-hash.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent be6c37dd
......@@ -1048,12 +1048,16 @@ libAbiHash verbosity _pkg_descr lbi lib clbi = do
let
comp = compiler lbi
platform = hostPlatform lbi
vanillaArgs =
vanillaArgs0 =
(componentGhcOptions verbosity lbi libBi clbi (componentBuildDir lbi clbi))
`mappend` mempty {
ghcOptMode = toFlag GhcModeAbiHash,
ghcOptInputModules = toNubListR $ exposedModules lib
}
vanillaArgs =
-- Package DBs unnecessary, and break ghc-cabal. See #3633
vanillaArgs0 { ghcOptPackageDBs = []
, ghcOptPackages = mempty }
sharedArgs = vanillaArgs `mappend` mempty {
ghcOptDynLinkMode = toFlag GhcDynamicOnly,
ghcOptFPic = toFlag True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment