Skip to content
Snippets Groups Projects
Verified Commit 1955d689 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: added opt level to build.rs

parent 710445dd
No related branches found
No related tags found
No related merge requests found
Pipeline #2173 failed
...@@ -117,6 +117,12 @@ fn main() { ...@@ -117,6 +117,12 @@ fn main() {
&env::var("PROFILE").unwrap_or(String::from("UNKNOWN")), &env::var("PROFILE").unwrap_or(String::from("UNKNOWN")),
); );
write_str_constant(
&mut file,
"OPT_LEVEL",
&env::var("OPT_LEVEL").unwrap_or(String::from("UNKNOWN")),
);
write_str_constant( write_str_constant(
&mut file, &mut file,
"MAKEFLAGS", "MAKEFLAGS",
......
...@@ -9,6 +9,7 @@ pub const COMPILER_VERSION: &str = "x.x.x"; ...@@ -9,6 +9,7 @@ pub const COMPILER_VERSION: &str = "x.x.x";
pub const HOST: &str = "-"; pub const HOST: &str = "-";
pub const TARGET: &str = "-"; pub const TARGET: &str = "-";
pub const PROFILE: &str = "-"; pub const PROFILE: &str = "-";
pub const OPT_LEVEL: &str = "-";
pub const MAKEFLAGS: &str = "-"; pub const MAKEFLAGS: &str = "-";
pub const FEATURES: [&str; 1] = ["cpu"]; pub const FEATURES: [&str; 1] = ["cpu"];
pub const PLATFORM_CPU_BITS: &str = "64"; pub const PLATFORM_CPU_BITS: &str = "64";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment