Skip to content
Newer
Older
100644 45 lines (36 sloc) 1.36 KB
fccc685 Initial open-source release
MLstate authored Jun 21, 2011
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18
19 (**
20 js compiler -- command line tool
21
22 @author Maxime Audouin
23 @author Mathieu Barbin
24 *)
25
26 (** loading the warnings of the different compilers
27 HACK: it also forces caml to link all the backends even
28 if they are not called directly (but only through registers)
29 *)
30 let () = List.iter WarningClass.load_set [
31 Imp_Compiler.warning_set;
32 ]
33
34 (** run *)
35 exception SigInt
36 let _ =
37 try
38 Sys.set_signal Sys.sigint (Sys.Signal_handle (fun _ -> raise SigInt)) ;
39 let () = OpabslgenPlugin.Self.self_store () in
40 let () = ObjectFiles.turn_separated_off () in
41 let return = QmlCompilers.Qml2jsSugar.console () in
42 exit return
43 with
44 | SigInt -> OManager.error "building process not accomplished due to an user interruption@\n"
Something went wrong with that request. Please try again.