diff options
author | romes <rodrigo.m.mesquita@gmail.com> | 2023-03-16 11:35:17 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-05-04 14:58:14 -0400 |
commit | db4be3395cb74eb07355339184123d5ded331dc3 (patch) | |
tree | 69ccc565d5e4253d74adc44cfbabf39d41061424 /testsuite/tests/driver/T18125 | |
parent | 6689c9c6eba6f538bedfe7a08316d7c5dec8bfae (diff) | |
download | haskell-db4be3395cb74eb07355339184123d5ded331dc3.tar.gz |
Add hashes to unit-ids created by hadrian
This commit adds support for computing an inputs hash for packages
compiled by hadrian. The result is that ABI incompatible packages should
be given different hashes and therefore be distinct in a cabal store.
Hashing is enabled by the `--flag`, and is off by default as the hash
contains a hash of the source files. We enable it when we produce
release builds so that the artifacts we distribute have the right unit
ids.
Diffstat (limited to 'testsuite/tests/driver/T18125')
-rw-r--r-- | testsuite/tests/driver/T18125/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/driver/T18125/Makefile b/testsuite/tests/driver/T18125/Makefile index d54e05a8ee..fa4a3917e4 100644 --- a/testsuite/tests/driver/T18125/Makefile +++ b/testsuite/tests/driver/T18125/Makefile @@ -6,8 +6,8 @@ test_pe = test-package-environment test_lib = containers T18125: - "$(GHC_PKG)" latest base > $(test_pe) - "$(GHC_PKG)" latest $(test_lib) >> $(test_pe) + "$(GHC_PKG)" field base id --simple-output > $(test_pe) + "$(GHC_PKG)" field $(test_lib) id --simple-outpu >> $(test_pe) "$(TEST_HC)" $(TEST_HC_OPTS) -Wunused-packages -package-env $(test_pe) T18125.hs > out 2>&1 C=`cat out | grep "$(test_lib)" -c` ; \ if [ $$C != "1" ]; then false; fi |