Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the "link" tag to "pack" actions (fixes #272)
Instead of a separate category, "pack" is now another form of linking like "program", "library", "toplevel" and "output_obj". This fixes the issue that package(...) tags where not passed at pack-production time, spotted by Jérémie Dimino in <ocaml/opam-repository#11628 (comment)> <janestreet/ppx_sexp_conv#20> More generally, this extends the meaning of all "link" flags to "pack", which seems to be the correct behavior for all the rules we inspected. I tested that this change fixes the original 'nocrypto' issue (once their _tags is also fixed to provide the right package(..) option at pack-time). This is a somewhat invasive change to the behavior of "pack" and "link" tags, which may affect all user-defined flag declarations. An alternative to this change would be to just add a specific "package" rule when the "pack" tag is present, but my understanding is that linking options quite generally apply to "pack" productions (that really behave mostly like library-archive production already under the ("link";"library") regime), so this more invasive change is more correct: the extra cases where it applies were likely to be small bugs before. (I checked that ocb-stubblr is orthogonal to this change and does not need any update.)
- Loading branch information