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

fix: overload of FEATURES name

parent 5a7ddc38
No related branches found
No related tags found
No related merge requests found
...@@ -129,16 +129,20 @@ fn main() { ...@@ -129,16 +129,20 @@ fn main() {
); );
let mut features = vec!["cpu"]; let mut features = vec!["cpu"];
if cfg!(feature = "wasm") {
if cfg!(feature = "wasm-extension") {
features.push("wasm") features.push("wasm")
} }
if cfg!(feature = "debug") {
if cfg!(feature = "python-extension") { features.push("debug")
features.push("python") }
if cfg!(feature = "pedantic") {
features.push("pedantic")
}
if cfg!(feature = "cpulog") {
features.push("cpulog")
} }
write_vec_constant(&mut file, "FEATURES", features); write_vec_constant(&mut file, "FEATURES_SEQ", features);
write_str_constant( write_str_constant(
&mut file, &mut file,
......
...@@ -11,7 +11,7 @@ pub const TARGET: &str = "-"; ...@@ -11,7 +11,7 @@ pub const TARGET: &str = "-";
pub const PROFILE: &str = "-"; pub const PROFILE: &str = "-";
pub const OPT_LEVEL: &str = "-"; pub const OPT_LEVEL: &str = "-";
pub const MAKEFLAGS: &str = "-"; pub const MAKEFLAGS: &str = "-";
pub const FEATURES: [&str; 1] = ["cpu"]; pub const FEATURES_SEQ: [&str; 1] = ["cpu"];
pub const PLATFORM_CPU_BITS: &str = "64"; pub const PLATFORM_CPU_BITS: &str = "64";
pub const PLATFORM_CPU_BITS_INT: usize = 64; pub const PLATFORM_CPU_BITS_INT: usize = 64;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment