Skip to content
This repository
tag: v1669
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 49 lines (33 sloc) 1.623 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
(*
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 <http://www.gnu.org/licenses/>.
*)

(**
Management of special dynamic pieces of code.

1) Meta-Informations :

(added before the parsed code regarding to the dependency).

A few meta-informations, such as compilation date, or some code depending of
compilation options (--cps mode, etc..) cannot be known staticly, and so
cannot be part of the stdlib.

However, some user may need to access these informations in their opa code.
If a pass uses some of these ident, they should be tagged as root.

It is the goal of opa_Roots : building some code dynamically at compile time (opa.exe)
and insering it in the code, before the stdlib.

This kind of generated code is added to the parsed code, and so treated as any other code
by the opa passes.

The pass inserting these opa value is : *pass_adding_env_var*

2) Roots :

list of some identifier needed / or inserted by certain pass, like db, qmlcompiler, etc..
*)

val roots_for_s3 :
  no_server:bool ->
  string list
Something went wrong with that request. Please try again.