Name
SPVM::Builder::Config::Exe - Configurations of creating excutable files.
Usage
use SPVM::Builder::Config::Exe;
my $config_exe = SPVM::Builder::Config::Exe->new_c99;
Description
SPVM::Builder::Config::Exe is configuration of creating excutable files of spvmcc.
Fields
Fields of SPVM::Builder::Config::Exe.
Fields are inherited from SPVM::Builder::Config and you can use the following fields.
no_precompile
my $no_precompile = $config->no_precompile;
$config->no_precompile($no_precompile);
If no_precompile
is a true value, precompiling is not performed.
no_compiler_api
my $no_compiler_api = $config->no_compiler_api;
$config->no_compiler_api($no_compiler_api);
If no_compiler_api
is a true value, the source codes of the compiler native APIs and the precompile native APIs is not linked.
config_spvm_core
my $config_spvm_core = $config->config_spvm_core;
$config->config_spvm_core($config_spvm_core);
Gets and sets the config(a SPVM::Builder::Config object) for SPVM core source files.
The default is a config that is created by the create_default_config function in the SPVM::Builder::Util::API class.
config_bootstrap
my $config_bootstrap = $config->config_bootstrap;
$config->config_bootstrap($config_bootstrap);
Gets and sets the config(a SPVM::Builder::Config object) for the bootstrap source file that contains main
function in the C language.
The default is a config that is created by the create_default_config function in the SPVM::Builder::Util::API class.
Methods
Methods of SPVM::Builder::Config::Exe.
Methods are inherited from SPVM::Builder::Config and you can use the following methods.
new
my $config = SPVM::Builder::Config::Exe->new;
Create a new SPVM::Builder::Config::Exe
object.
This is same as "new" in SPVM::Builder::Config, but set output_type
field to exe
.
add_before_each_compile_cb
$config->add_before_compile_cb(@before_each_compile_cbs);
Adds elements after the last element of "before_each_compile_cbs" field.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License