SPVM::Builder::Config::Exe - Configurations of creating excutable files.
The SPVM::Builder::Config::Exe class has methods to manipulate a config to generate an excutable file using spvmcc.
use SPVM::Builder::Config::Exe; my $config_exe = SPVM::Builder::Config::Exe->new_c99;
SPVM::Builder::Config
my $no_precompile = $config_exe->no_precompile; $config_exe->no_precompile($no_precompile);
Gets and sets the no_precompile field.
no_precompile
If this field is a true value, precompiling is not performed.
my $no_compiler_api = $config_exe->no_compiler_api; $config_exe->no_compiler_api($no_compiler_api);
If this field is a true value, the source codes of the compiler native APIs and the precompile native APIs is not linked.
my $config_exe_spvm_core = $config_exe->config_spvm_core; $config_exe->config_spvm_core($config_exe_spvm_core);
Gets and sets the config_spvm_core field.
config_spvm_core
This field is a SPVM::Builder::Config object for SPVM core source files.
my $config_exe_bootstrap = $config_exe->config_bootstrap; $config_exe->config_bootstrap($config_exe_bootstrap);
Gets and sets the config_bootstrap field.
config_bootstrap
This field is a SPVM::Builder::Config object for the bootstrap source file that contains main function in the C language for the executable file.
main
my $config_exe = SPVM::Builder::Config::Exe->new(%fields);
Create a new SPVM::Builder::Config::Exe object with "Fields".
SPVM::Builder::Config::Exe
This method calls the new method of the super class before the own operations of this method.
new
Default Field Values:
If a field is not defined, the field is set to the following default value.
"output_type"
"exe"
"before_each_compile_cbs"
[]
"no_precompile"
0
"no_compiler_api"
"config_spvm_core"
The return value of the create_default_config function of the SPVM::Builder::Util::API class.
"config_bootstrap"
$config_exe->add_before_compile_cb(@before_each_compile_cbs);
Adds elements after the last element of the "before_each_compile_cbs" field.
Copyright (c) 2023 Yuki Kimoto
MIT License
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.