diff options
author | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2016-09-09 11:34:22 +0200 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@inria.fr> | 2016-09-09 11:34:49 +0200 |
commit | dee69387bd4b2944c9e81ee422fb9900ab0e6c4d (patch) | |
tree | 851bf0fb7f6a7460f6ac29398b2e613b290ae0a6 /kernel/nativecode.ml | |
parent | 01d0c1224e0a29f10b2cef5b3fd2b4d06a686055 (diff) |
Make it explicit when paths are added to the ML search paths.
When Mltop.add_rec_path was called to add paths to the loadpath, it was
also adding the top directory to the mlpath. In particular, "theories" was
added to the mlpath although it was explicitly marked "~with_ml:false".
The "plugins" and "user-contribs" subdirectories were scanned twice, once
for filling the loadpath and then for filling the mlpath.
This patch adds an argument to Mltop.add_rec_path to explicitly control
which paths from the loadpath are added to the mlpath (none, the top one,
all of them). The "top" option was the single old behavior; the "none"
option is used for "theories"; the "all" option is used to avoid
duplicate scanning for "plugins" and "user-contribs".
Diffstat (limited to 'kernel/nativecode.ml')
0 files changed, 0 insertions, 0 deletions