Driver.Flags
General compiler settings.
type t = {
optimization_level : Analysis_and_optimization.Optimize.optimization_level;
allow_undefined : bool;
functions_only : bool;
standalone_functions : bool;
use_opencl : bool;
include_source : Frontend.Include_files.t;
info : bool;
version : bool;
auto_format : bool;
debug_settings : debug_settings;
line_length : int;
canonicalizer_settings : Frontend.Canonicalize.canonicalizer_settings;
warn_pedantic : bool;
warn_uninitialized : bool;
filename_in_msg : string option;
}
and debug_settings = {
print_ast : bool;
print_typed_ast : bool;
print_mir : debug_options;
print_transformed_mir : debug_options;
print_optimized_mir : debug_options;
print_mem_patterns : bool;
force_soa : bool option;
if None, do nothing. If Some true, force on, if Some false, force off
*)print_lir : bool;
debug_generate_data : bool;
debug_generate_inits : bool;
debug_data_json : string option;
}
Settings mainly for developers, not users
val default : t
val get_optimization_settings :
t ->
Analysis_and_optimization.Optimize.optimization_settings
This is a helper function to set the model_compile_info
method of the generated C++ to contain a copy of the (relevant) compiler flags