-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
hs_libary_pattern
in pkgdb_to_bzl.py
According to the cabal docs, the `hs-libraries` entries of a package config needs to comply to specific file naming conventions, see [1]. Only names starting with `HS` or `C` are allowed and dynamic libs prefixed with `C` need to be handled specially as the "C" prefix should be stripped. The "rts" hs-libraries also exist in all configured GHC ways, single/multi threaded and debug/non-debug variants. Before, only rts's Cffi was handled correctly but other C libs were not. [1]: https://cabal.readthedocs.io/en/3.4/cabal-package.html#pkg-field-extra-bundled-libraries
- Loading branch information
Showing
1 changed file
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters