-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ulysse Gérard <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
(** This module contains a small database of flags that is used when compiling C | ||
and C++ stubs. Indeed, both the C++ flags and the output arguments can | ||
differ from one compiler to another. *) | ||
and C++ stubs. *) | ||
|
||
(** [default_with_output_args ~kind ctx destination] returns both the list of | ||
default flags to compile C and C++ stubs and the correct output arguments | ||
depending on the default C compiler: | ||
- For CXX the default flags will depend on the detected compiler | ||
- For C the flags are the ones from [ocamlc -config] | ||
The returned flag list also include the feedback-directed optimizations | ||
flags (FDO). *) | ||
(** [get_flags c_compiler] returns the necessary flags to turn this compiler | ||
into a c++ compiler for some of the most common compilers *) | ||
val get_flags : Ocaml_config.Ccomp_type.t -> string list |