diff options
Diffstat (limited to 'ocamlbuild/ocaml_utils.ml')
-rw-r--r-- | ocamlbuild/ocaml_utils.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ocamlbuild/ocaml_utils.ml b/ocamlbuild/ocaml_utils.ml index b35ad679e..592769637 100644 --- a/ocamlbuild/ocaml_utils.ml +++ b/ocamlbuild/ocaml_utils.ml @@ -118,6 +118,10 @@ let ocaml_lib ?(extern=false) ?(byte=true) ?(native=true) ?dir ?tag_name libpath if not extern then dep tags [lib] (* cannot happen? *) in Hashtbl.replace info_libraries tag_name (libpath, extern); + (* adding [tag_name] to [info_libraries] will make this tag + affect include-dir lookups, so it is used even if not + mentioned explicitly in any rule. *) + Flags.mark_tag_used tag_name; if extern then begin if byte then flag_and_dep ["ocaml"; tag_name; "link"; "byte"] (libpath^".cma"); |