-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use scheme for install rules #2130
Use scheme for install rules #2130
Conversation
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
485ff6e
to
c668eb6
Compare
@aalekseyev the patch itself looks good, however looking at the final state of
The code is not entirely written this way, however it seems like it shouldn't too hard to change it to be explicitly written this way by moving some part of I'm also a bit worried by all the calls to |
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
e9bdf06
to
92d44cd
Compare
I made the change along those lines, but the "generate the install file" is still not independent from "generate symlinks" because the latter rewrites the I don't understand the concern about |
It is called only once and it doesn't seem special compared to the other kinds of stanzas. Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
We discussed it offline and decided to leave the part about |
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
|
||
String.Map.iter map ~f:(fun (module M : Gen) -> | ||
Build_system.handle_add_rule_effects (fun () -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we port odoc to use Rules
, we will not need this, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think so. This changes somewhat in #2089 and I hope will go away at some point.
src/build_system.ml
Outdated
; mutable load_dir_stack : Path.t list | ||
; (* Set of directories under _build that have at least one rule and | ||
all their ancestors. *) | ||
mutable build_dirs_to_keep : Path.Set.t | ||
; mutable prefix : (unit, unit) Build.t option | ||
; hook : hook -> unit | ||
; (* Package files are part of *) | ||
packages : Package.Name.t Path.Table.t | ||
packages : (Path.t -> Package.Name.t list) Fdecl.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be a bit more clear if this returned Package.Name.Set.t
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this change and I'm merging the PR now.
Signed-off-by: Arseniy Alekseyev <aalekseyev@janestreet.com>
@aalekseyev I pushed one last commit to deforest a bit the construction of the map of set |
@diml thanks |
Scheme.t