Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "remove -rectypes except for term.ml"
Preparing landing of the native compiler, which requires -rectypes flag. This reverts commit f975575. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16135 85f007b7-540e-0410-9357-904b9bb8a0f7
- Loading branch information
mdenes
committed
Jan 22, 2013
1 parent
e88df65
commit 62ce65d
Showing
8 changed files
with
69 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
Index: scripts/coqmktop.ml | |||
=================================================================== | |||
--- scripts/coqmktop.ml (révision 12084) | |||
+++ scripts/coqmktop.ml (copie de travail) | |||
@@ -231,12 +231,25 @@ | |||
end;; | |||
|
|||
let ppf = Format.std_formatter;; | |||
+ let set_rectypes_hack () = | |||
+ if String.length (Sys.ocaml_version) >= 4 & | |||
+ String.sub (Sys.ocaml_version) 0 4 = \"3.10\" | |||
+ then | |||
+ (* ocaml 3.10 does not have #rectypes but needs it *) | |||
+ (* simulate a call with option -rectypes before *) | |||
+ (* jumping to the ocaml toplevel *) | |||
+ for i = 1 to Array.length Sys.argv - 1 do | |||
+ Sys.argv.(i) <- \"-rectypes\" | |||
+ done | |||
+ else | |||
+ () in | |||
+ | |||
Mltop.set_top | |||
{Mltop.load_obj= | |||
(fun f -> if not (Topdirs.load_file ppf f) then failwith \"error\"); | |||
Mltop.use_file=Topdirs.dir_use ppf; | |||
Mltop.add_dir=Topdirs.dir_directory; | |||
- Mltop.ml_loop=(fun () -> Toploop.loop ppf) };;\n" | |||
+ Mltop.ml_loop=(fun () -> set_rectypes_hack(); Topmain.main()) };;\n" | |||
|
|||
(* create a temporary main file to link *) | |||
let create_tmp_main_file modules = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters