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

fix: overload of FEATURES name

parent 762d4ae3
No related branches found
No related tags found
No related merge requests found
Pipeline #2811 passed
......@@ -129,16 +129,20 @@ fn main() {
);
let mut features = vec!["cpu"];
if cfg!(feature = "wasm-extension") {
if cfg!(feature = "wasm") {
features.push("wasm")
}
if cfg!(feature = "python-extension") {
features.push("python")
if cfg!(feature = "debug") {
features.push("debug")
}
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(
&mut file,
......
......@@ -11,7 +11,7 @@ pub const TARGET: &str = "-";
pub const PROFILE: &str = "-";
pub const OPT_LEVEL: &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_INT: usize = 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