From 1b59136f8e31040f7b4ef6bed1cf6c67fe0f2e4e Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Fri, 13 Dec 2024 13:25:45 +0300 Subject: [PATCH] Add compiler.runtime arg --- src/install/build_info/build_settings.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/install/build_info/build_settings.rs b/src/install/build_info/build_settings.rs index 31ee4f6..6e67c60 100644 --- a/src/install/build_info/build_settings.rs +++ b/src/install/build_info/build_settings.rs @@ -40,6 +40,8 @@ pub struct BuildSettings { pub(crate) compiler: Option, #[serde(rename = "compiler.libcxx")] pub(crate) compiler_libcxx: Option, + #[serde(rename = "compiler.runtime")] + pub(crate) compiler_runtime: Option, #[serde(rename = "compiler.version")] pub(crate) compiler_version: Option, pub(crate) os: Option, @@ -60,6 +62,7 @@ impl BuildSettings { build_type: None, compiler: None, compiler_libcxx: None, + compiler_runtime: None, compiler_version: None, os: None, os_build: None, @@ -89,6 +92,10 @@ impl BuildSettings { settings.push(format!("{}={}", "compiler.libcxx", compiler_libcxx)); } + if let Some(compiler_runtime) = &self.compiler_runtime { + settings.push(format!("{}={}", "compiler.runtime", compiler_runtime)); + } + if let Some(compiler_version) = &self.compiler_version { settings.push(format!("{}={}", "compiler.version", compiler_version)); } @@ -146,6 +153,11 @@ impl BuildSettings { self } + pub fn compiler_runtime(mut self, compiler_runtime: String) -> Self { + self.compiler_runtime = Some(compiler_runtime); + self + } + pub fn compiler_version(mut self, compiler_version: String) -> Self { self.compiler_version = Some(compiler_version); self