• Zejun Wu's avatar
    Fix ghc-pkg when only prof way is enabled · e400b9ba
    Zejun Wu authored
    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
    
    Reviewers: simonmar, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, carter
    
    Differential Revision: https://phabricator.haskell.org/D5234
    e400b9ba
Name
Last commit
Last update
..
T12485 Loading commit data...
T12733 Loading commit data...
cabal01 Loading commit data...
cabal03 Loading commit data...
cabal04 Loading commit data...
cabal05 Loading commit data...
cabal06 Loading commit data...
cabal08 Loading commit data...
cabal09 Loading commit data...
pkg02 Loading commit data...
recache_reexport_db Loading commit data...
sigcabal01 Loading commit data...
Makefile Loading commit data...
T12485a.stdout Loading commit data...
T13703.stdout Loading commit data...
T1750.stderr Loading commit data...
T1750.stdout Loading commit data...
T1750A.pkg Loading commit data...
T1750B.pkg Loading commit data...
T5442a.stdout Loading commit data...
T5442b.stderr Loading commit data...
T5442b.stdout Loading commit data...
T5442c.stderr Loading commit data...
T5442c.stdout Loading commit data...
T5442d.stderr Loading commit data...
T5442d.stdout Loading commit data...
all.T Loading commit data...
ghcpkg01.stderr Loading commit data...
ghcpkg01.stdout Loading commit data...
ghcpkg03.stderr Loading commit data...
ghcpkg03.stderr-mingw32 Loading commit data...
ghcpkg03.stdout Loading commit data...
ghcpkg04.hs Loading commit data...
ghcpkg04.stderr Loading commit data...
ghcpkg05.stderr Loading commit data...
ghcpkg05.stderr-mingw32 Loading commit data...
ghcpkg05.stdout Loading commit data...
ghcpkg06.stderr Loading commit data...
ghcpkg06.stdout Loading commit data...
ghcpkg07.stdout Loading commit data...
pkg01.hs Loading commit data...
shadow.stderr Loading commit data...
shadow.stdout Loading commit data...
shadow1.pkg Loading commit data...
shadow2.pkg Loading commit data...
shadow3.pkg Loading commit data...
shadow4.pkg Loading commit data...
test.pkg Loading commit data...
test13703a.pkg Loading commit data...
test13703b.pkg Loading commit data...
test2.pkg Loading commit data...
test3.pkg Loading commit data...
test4.pkg Loading commit data...
test5.pkg Loading commit data...
test7a.pkg Loading commit data...
test7b.pkg Loading commit data...
testdup.pkg Loading commit data...