Skip to content

Commit

Permalink
Let the virtual library do the selection for implementations
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Pluvinage <lucas.pluvinage@gmail.com>
  • Loading branch information
TheLortex committed Jun 27, 2019
1 parent 6de9237 commit 1a5e841
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ let setup sctx ~dir =
let expander = Super_context.expander sctx ~dir in
let scope = Super_context.find_scope_by_dir sctx dir in
let db = Scope.libs scope in
let libs = libs_under_dir sctx ~db ~dir:(Path.build dir) in
let libs = libs_under_dir sctx ~db ~dir:(Path.build dir)
|> List.filter ~f:(fun (lib : Lib.t) ->
lib
|> Lib.info
|> Lib_info.implements
|> Option.is_none) in
let source = source ~dir in
let obj_dir = Toplevel.Source.obj_dir source in
let loc = Toplevel.Source.loc source in
Expand Down

0 comments on commit 1a5e841

Please sign in to comment.