forked from MLstate/opalang
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhance] compiler, bsl: added --no-absolute-plugin needed for buildi…
…ng opx without absolute reference to opp
- Loading branch information
1 parent
fb992fe
commit cadf7ec
Showing
6 changed files
with
68 additions
and
2 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,34 @@ | |||
(* | |||
Copyright © 2012 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 <http://www.gnu.org/licenses/>. | |||
*) | |||
|
|||
type t = { | |||
no_absolute : bool; | |||
} | |||
|
|||
let default = { | |||
no_absolute = false; | |||
} | |||
|
|||
let x = ref default | |||
|
|||
let get () = !x | |||
|
|||
let options = [ | |||
("--no-absolute-plugin", Base.Arg.Unit (fun () -> x := {no_absolute = true}) | |||
, "Plugin paths should not be considered as absolute path (package will not refers to plugin with an absolute path)") | |||
] |
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,25 @@ | |||
(* | |||
Copyright © 2012 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 <http://www.gnu.org/licenses/>. | |||
*) | |||
|
|||
type t = { | |||
no_absolute : bool; | |||
} | |||
|
|||
val get : unit -> t | |||
|
|||
val options : (string * Base.Arg.spec * string) list |
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