Fix ghc-pkg when only prof way is enabled
ClosedPublic

Authored by watashi on Oct 17 2018, 11:05 AM.

Details

Summary

We saw following errors:

$ cabal install --disable-library-vanilla --disable-shared --enable-library-profiling
hashable-1.2.7.0: cannot find any of
["libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.a","libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.p_a","libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.so","libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.dylib","HShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ-ghc8.4.3.dll"]

This is because ghc-pkg is looking for
libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ.p_a instead of
libHShashable-1.2.7.0-Q2TKVDwk4GBEHmizb4teZ_p.a.

Test Plan

./validate

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
watashi created this revision.Oct 17 2018, 11:05 AM
This revision is now accepted and ready to land.Oct 18 2018, 1:19 PM
This revision was automatically updated to reflect the committed changes.