Spicy
Public Attributes | List of all members
hilti::driver::Options Struct Reference

#include <driver.h>

Public Attributes

bool include_linker = false
 
bool output_hilti = false
 
bool output_prototypes = false
 
bool output_cxx = false
 
std::string output_cxx_prefix
 
bool output_linker = false
 
Dependencies output_dependencies = Dependencies::None
 
bool execute_code = false
 
bool show_backtraces = false
 
bool abort_on_exceptions = false
 
bool keep_tmps = false
 
bool skip_dependencies = false
 
bool report_resource_usage = false
 
bool report_times = false
 
bool dump_code = false
 
bool global_optimizations = true
 
std::vector< hilti::rt::filesystem::path > inputs
 
hilti::rt::filesystem::path output_path
 
std::unique_ptr< Loggerlogger
 

Detailed Description

Options for the compiler driver

Note
Only one of the output_* can be used at any time.

Member Data Documentation

◆ abort_on_exceptions

bool hilti::driver::Options::abort_on_exceptions = false

abort() instead of throwing HILTI exceptions

◆ dump_code

bool hilti::driver::Options::dump_code = false

Record all final HILTI and C++ code to disk for debugging.

◆ execute_code

bool hilti::driver::Options::execute_code = false

compile code, and execute unless output_path is set

◆ global_optimizations

bool hilti::driver::Options::global_optimizations = true

whether to run global HILTI optimizations on the generated code.

◆ include_linker

bool hilti::driver::Options::include_linker = false

if true, perform custom HILTI linker phase

◆ inputs

std::vector<hilti::rt::filesystem::path> hilti::driver::Options::inputs

files to compile; these will be automatically pulled in by Driver::run()

◆ keep_tmps

bool hilti::driver::Options::keep_tmps = false

do not delete any temporary files created

◆ logger

std::unique_ptr<Logger> hilti::driver::Options::logger

Logger instances to use for diagnostics; set to a new logger by default by constructor

◆ output_cxx

bool hilti::driver::Options::output_cxx = false

output generated C++ code

◆ output_cxx_prefix

std::string hilti::driver::Options::output_cxx_prefix

when outputting generated C++ code, prefix each module name with this string

◆ output_dependencies

Dependencies hilti::driver::Options::output_dependencies = Dependencies::None

output dependencies for compiled modules

◆ output_hilti

bool hilti::driver::Options::output_hilti = false

render HILTI inputs back into HILTI source code

◆ output_linker

bool hilti::driver::Options::output_linker = false

output generated HILTI linker C++ code

◆ output_path

hilti::rt::filesystem::path hilti::driver::Options::output_path

file to store output in (default if empty is printing to stdout)

◆ output_prototypes

bool hilti::driver::Options::output_prototypes = false

output C++ prototypes for generated code

◆ report_resource_usage

bool hilti::driver::Options::report_resource_usage = false

print summary of runtime resource usage at termination

◆ report_times

bool hilti::driver::Options::report_times = false

Report break-down of driver's execution time.

◆ show_backtraces

bool hilti::driver::Options::show_backtraces = false

include backtraces when printing unhandled exceptions

◆ skip_dependencies

bool hilti::driver::Options::skip_dependencies = false

do not automatically compile dependencies during JIT


The documentation for this struct was generated from the following file: