Manpage logo

SPVM::Document::EnvironmentVariables - Environment Variables

Name  Description  Environment Variables  SPVM_BUILD_DIR  SPVM_CC_DEBUG  SPVM_CC_QUIET  SPVM_CC_FORCE  See Also  Copyright & License 

Name

SPVM::Document::EnvironmentVariables − Environment Variables

Description

This document explains environment variables.

Environment Variables

If an environment variable is an empty string, it is treated as an undefined value.

SPVM_BUILD_DIR

A directory for files generated by the compiler and linker.

C source codes for precompilation, dynamic link libraries and object files are stored into this directory.

These files are output when attempting to build a module containing methods with the "native" attribute or the "precompile" attribute.

If these files are output and the directory given by "SPVM_BUILD_DIR" environment variable does not exist, an exception is thrown. Examples:

# bash
export SPVM_BUILD_DIR=˜/.spvm_build
# csh
setenv SPVM_BUILD_DIR ˜/.spvm_build

SPVM_CC_DEBUG

If "SPVM_CC_DEBUG" environement variable is a true value of Perl, debug messages and messages from SPVM native class compiler and linker are printed to stderr.

SPVM_CC_QUIET

If "SPVM_CC_QUIET" environement variable is a true value of Perl, messages SPVM native class compiler and linker are not printed to stderr.

If it is defined and a false value of Perl, the messages are printed.

This setting has a higher priority than SPVM::Builder::Config#quiet field.

SPVM_CC_FORCE

If "SPVM_CC_FORCE" environement variable is a true value of Perl, the compilation and link by SPVM native class compiler and linker are forced.

This setting has a higher priority than SPVM::Builder::Config#force field.

See Also

SPVM::Document

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se