pub struct Build { /* private fields */ }
Implementations
Add a file which will be compiled
e.g. "foo.s"
Set multiple files
Add a directory to the -I
include path
Pre-define a macro with an optional value
Configures whether the assembler will generate debug information.
This option is automatically scraped from the DEBUG
environment
variable by build scripts (only enabled when the profile is “debug”), so
it’s not required to call this function.
Add an arbitrary flag to the invocation of the assembler
e.g. "-Fdwarf"
Configures the target this configuration will be compiling for.
This option is automatically scraped from the TARGET
environment
variable by build scripts, so it’s not required to call this function.
Configures the output directory where all object files and static libraries will be located.
This option is automatically scraped from the OUT_DIR environment variable by build scripts, so it’s not required to call this function.
Configures the tool used to assemble archives.
This option is automatically determined from the target platform or a number of environment variables, so it’s not required to call this function.
Configures the default archiver tool as well as the command syntax.
This option is automatically determined from cfg!(target_env = "msvc")
,
so it’s not required to call this function.
Set the minimum version required
Run the compiler, generating the file output
The name output should be the base name of the library, without file extension, and without “lib” prefix.
The output file will have target-specific name,
such as lib*.a
(non-MSVC) or *.lib
(MSVC).