File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,15 @@ let sort_cmp univ pb s0 s1 =
169
169
(match pb with
170
170
| CONV -> Univ. check_eq univ u1 u2
171
171
| CUMUL -> Univ. check_leq univ u1 u2)
172
- then raise NotConvertible
172
+ then begin
173
+ if ! Flags. debug then begin
174
+ let op = match pb with CONV -> " =" | CUMUL -> " <=" in
175
+ Printf. eprintf " cort_cmp: %s\n %!" Pp. (string_of_ppcmds
176
+ (str" Error: " ++ Univ. pr_uni u1 ++ str op ++ Univ. pr_uni u2 ++ str " :" ++ cut()
177
+ ++ Univ. pr_universes univ))
178
+ end ;
179
+ raise NotConvertible
180
+ end
173
181
| (_ , _ ) -> raise NotConvertible
174
182
175
183
let rec no_arg_available = function
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ let import file clib univs digest =
83
83
(* When the module is admitted, digests *must* match *)
84
84
let unsafe_import file clib univs digest =
85
85
let env = ! genv in
86
- check_imports (errorlabstrm" unsafe_import" ) clib.comp_name env clib.comp_deps;
86
+ if ! Flags. debug then check_imports msg_warning clib.comp_name env clib.comp_deps
87
+ else check_imports (errorlabstrm" unsafe_import" ) clib.comp_name env clib.comp_deps;
87
88
check_engagement env clib.comp_enga;
88
89
full_add_module clib.comp_name clib.comp_mod univs digest
You can’t perform that action at this time.
0 commit comments