Fix -nostdlib option to ocaml

Search path was initialised before options were parsed, meaning that
-nostdlib had no effect.
master
David Allsopp 2017-02-13 19:35:13 +01:00
parent b3f54cb726
commit 12b20f30f5
3 changed files with 7 additions and 0 deletions

View File

@ -252,6 +252,11 @@ Working version
calls over the lifetime of a program when using Spacetime profiling
(Mark Shinwell)
### Toplevel:
- GPR#1041: -nostdlib no longer ignored by toplevel.
(David Allsopp, review by Xavier Leroy)
### Compiler distribution build system
- MPR#6373, GPR#1093: Suppress trigraph warnings from macOS assembler

View File

@ -254,4 +254,5 @@ let main () =
| Arg.Help msg -> Format.fprintf Format.std_formatter "%s%!" msg; exit 0
end;
if not (prepare Format.err_formatter) then exit 2;
Compmisc.init_path true;
Opttoploop.loop Format.std_formatter

View File

@ -168,4 +168,5 @@ let main () =
end;
Compenv.readenv ppf Before_link;
if not (prepare ppf) then exit 2;
Compmisc.init_path false;
Toploop.loop Format.std_formatter