-
Notifications
You must be signed in to change notification settings - Fork 470
[RFC] Link time code generation #594
Copy link
Copy link
Closed
Labels
proposalRFC's that are awaiting discussion to be accepted or rejectedRFC's that are awaiting discussion to be accepted or rejected
Description
It'd be nice to support special libraries whose implementation would be generated at link time. Here are several uses cases:
Build info
module Dune_build_info : sig
(** If inside git, this is the output of [git describe ...] *)
val vcs_head : string option
(** Project version *)
val version : string
(** For things that dynamically load libraries *)
val linked_in_libraries : string list
endOcaml config
This could be used for all configurator scripts:
module Dune_ocaml_config : sig
val version : int * int * int
val standard_library : string
...
endall you'd have to do is add dune.ocaml_config in the libraries field and we'd get this library with the values instantiated with the current build context configuration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
proposalRFC's that are awaiting discussion to be accepted or rejectedRFC's that are awaiting discussion to be accepted or rejected