pub struct LlvmPortConfig {
pub version: String,
pub targets: Vec<String>,
pub enable_assertions: bool,
pub single_threaded_link: bool,
pub build_type: String,
pub install_prefix: String,
}Expand description
LLVM build configuration
Fields§
§version: String§targets: Vec<String>§enable_assertions: bool§single_threaded_link: bool§build_type: String§install_prefix: StringImplementations§
Source§impl LlvmPortConfig
impl LlvmPortConfig
Sourcepub fn cmake_args(&self) -> Vec<String>
pub fn cmake_args(&self) -> Vec<String>
Generate CMake arguments
Sourcepub fn to_build_config(&self) -> BuildConfig
pub fn to_build_config(&self) -> BuildConfig
Generate BuildConfig for the build orchestrator
Sourcepub fn validate_resources(
&self,
available_memory_mb: u64,
) -> Result<(), KernelError>
pub fn validate_resources( &self, available_memory_mb: u64, ) -> Result<(), KernelError>
Validate system has enough resources