Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (36 sloc) 1.397 kb
Copyright © 2011 MLstate
This file is part of OPA.
OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.
You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <>.
js compiler -- command line tool
@author Maxime Audouin
@author Mathieu Barbin
(** loading the warnings of the different compilers
HACK: it also forces caml to link all the backends even
if they are not called directly (but only through registers)
let () = List.iter WarningClass.load_set [
(** run *)
exception SigInt
let _ =
Sys.set_signal Sys.sigint (Sys.Signal_handle (fun _ -> raise SigInt)) ;
let () = OpabslgenPlugin.Self.self_store () in
let () = ObjectFiles.turn_separated_off () in
let return = QmlCompilers.Qml2jsSugar.console () in
exit return
| SigInt -> OManager.error "building process not accomplished due to an user interruption@\n"
Jump to Line
Something went wrong with that request. Please try again.