Skip to content

Commit

Permalink
[base packages] precision in case we forget to add the "-no-base-pack…
Browse files Browse the repository at this point in the history
…ages"

( for instance, see 640a3ba )
  • Loading branch information
tuong committed Jul 6, 2012
1 parent ae24cc4 commit 5ec9ab6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/client.ml
Expand Up @@ -846,6 +846,17 @@ module Heuristic = struct
let comp_f = Path.G.compiler t.global ocaml_version in
let comp = File.Comp.read comp_f in
let available = NV.to_map t.available in
if (* check that all packages in [comp] are in [available] *)
List.fold_left
(fun b -> function
| (name, _), None ->
if N.Map.mem (N.of_string name) available then b else
let _ = Globals.error "Package %s not found" name in
true
| _ -> b)
false
(File.Comp.packages comp)
then Globals.exit 66;
List.rev_map
(function
| (name, _), None ->
Expand Down

0 comments on commit 5ec9ab6

Please sign in to comment.