]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/matitacLib.ml
defn2.ma is to be used with part1a_inversion3
[helm.git] / helm / software / matita / matitacLib.ml
index 7470b8febc6ca4670e7b1f821e55dabcc4563c7f..8808aea22bc71f2c088bab3b6a682c7af9384580 100644 (file)
@@ -110,7 +110,7 @@ let get_include_paths options =
 ;;
 
 let activate_extraction baseuri fname =
- if false then
+ if Helm_registry.get_bool "matita.extract" then
   let mangled_baseuri =
    let baseuri = String.sub baseuri 5 (String.length baseuri - 5) in
      let baseuri = Pcre.replace ~pat:"/" ~templ:"_" baseuri in
@@ -248,12 +248,13 @@ let compile options fname =
      LexiconSync.time_travel 
        ~present:lexicon_status ~past:initial_lexicon_status;
      clean_exit baseuri false
-  | MatitaEngine.EnrichedWithLexiconStatus (exn, lex_stat) ->
+  | MatitaEngine.EnrichedWithLexiconStatus (exn, lex_stat) as exn' ->
       (match exn with
       | Sys.Break -> HLog.error "user break!"
       | HExtlib.Localized (floc,CicNotationParser.Parse_error err) ->
           let (x, y) = HExtlib.loc_of_floc floc in
           HLog.error (sprintf "Parse error at %d-%d: %s" x y err)
+      | exn when matita_debug -> raise exn'
       | exn -> HLog.error (snd (MatitaExcPp.to_string exn)));
       LexiconSync.time_travel ~present:lex_stat ~past:initial_lexicon_status;
       pp_times fname false big_bang big_bang_u big_bang_s;