Name

SPVM::Builder::Config::Exe - Configurations of creating excutable files.

Description

The SPVM::Builder::Config::Exe class has methods to manipulate a config to generate an excutable file using spvmcc.

Usage

use SPVM::Builder::Config::Exe;

my $config_exe = SPVM::Builder::Config::Exe->new_gnu99;

Inheritance

Fields

config_spvm_core

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.

This field is a SPVM::Builder::Config object for SPVM core source files.

config_bootstrap

my $config_exe_bootstrap = $config_exe->config_bootstrap;
$config_exe->config_bootstrap($config_exe_bootstrap);

Gets and sets the config_bootstrap field.

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.

Methods

new

my $config_exe = SPVM::Builder::Config::Exe->new(%fields);

Create a new SPVM::Builder::Config::Exe object with "Fields".

This method calls the new method of the super class before the own operations of this method.

Default Field Values:

If a field is not defined, the field is set to the following default value.

add_before_each_compile_cb

$config_exe->add_before_compile_cb(@before_each_compile_cbs);

Adds elements after the last element of the "before_each_compile_cbs" field.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License