You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4573 Reporter: Radzevich Belevich Assigned to:@gasche Status: closed (set by @xavierleroy on 2015-12-11T18:19:52Z) Resolution: not a bug Priority: normal Severity: tweak Target version: 4.00.2+dev Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues Monitored by: pveber
Bug description
Sorry for my bad english.
Ocamlbuild try to find submodules for .mlpack file in same dir when the .mlpack file exists, but when we get "touch _tags" it's look at subdir for this modules.
The text was updated successfully, but these errors were encountered:
This is not a bug, but rather a not-well-documented feature of ocamlbuild, related to the default value of the "traverse" tag that controls recursive traversal of subdirectories.
Initially ocamlbuild has "traverse: true" in all circumstances, because that's the most convenient when compiling an OCaml project. However, that was a performance nightmare when ocamlbuild was called from somewhere else: calling ocamlbuild from your home directory could try to traverse it entirely!
So the change that was made (around 3.11 I'd guess) is to use a heuristic to detect whether we're in an real OCaml project, or in a random directory:
if a "_tags" or a "myocamlbuild.ml" exists in the current working directory, then "traverse" is enabled by default (all subdirectories are recursively traversed)
if no "_tags" and no "myocamlbuild.ml" file exists, "traverse" is not enabled by default
Note that in either case you can change this default by adding the "traverse" tag to specific subdirectories (": traverse") or for everything ("true: traverse"), and conversely disabling it with "-traverse" instead -- either in a _tags file or through the -tag-line "..." option).
PS: I'm not fond of this heuristic, for precisely the reason that it is surprising that adding a "_tags" file would change the observed semantics. But I'm not sure what would be a better choice, and don't see how to change this without breaking compatibility.
Original bug ID: 4573
Reporter: Radzevich Belevich
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:19:52Z)
Resolution: not a bug
Priority: normal
Severity: tweak
Target version: 4.00.2+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: pveber
Bug description
Sorry for my bad english.
Ocamlbuild try to find submodules for .mlpack file in same dir when the .mlpack file exists, but when we get "touch _tags" it's look at subdir for this modules.
The text was updated successfully, but these errors were encountered: