Skip to main content

Module c_build

Module c_build 

Source

Re-exportsยง

use std::path::PathBuf; ๐Ÿ”’
use crate::artifact_names::dynamic_lib_name; ๐Ÿ”’
use crate::artifact_names::static_lib_name; ๐Ÿ”’
use crate::external_deps::c_cxx_compiler::cc; ๐Ÿ”’
use crate::external_deps::c_cxx_compiler::cxx; ๐Ÿ”’
use crate::external_deps::llvm::llvm_ar; ๐Ÿ”’
use crate::path_helpers::path; ๐Ÿ”’
use crate::targets::is_darwin; ๐Ÿ”’
use crate::targets::is_windows; ๐Ÿ”’
use crate::targets::is_windows_msvc; ๐Ÿ”’

Functionsยง

build_native_dynamic_lib
Builds a dynamic lib. The filename is computed in a target-dependent manner, relying on std::env::consts::DLL_PREFIX and std::env::consts::DLL_EXTENSION.
build_native_static_lib
Builds a static lib (.lib on Windows MSVC and .a for the rest) with the given name. Built from a C file.
build_native_static_lib_cxx
Builds a static lib (.lib on Windows MSVC and .a for the rest) with the given name. Built from a C++ file.
build_native_static_lib_internal ๐Ÿ”’
build_native_static_lib_optimized
Builds an optimized static lib (.lib on Windows MSVC and .a for the rest) with the given name. Built from a C file.