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

feat: removed NUM_CPUS

Also added PLATFORM_CPU_BITS_INT.
parent 8c8be892
No related branches found
No related tags found
No related merge requests found
Pipeline #2207 failed
......@@ -149,8 +149,8 @@ fn main() {
write_constant(
&mut file,
"NUM_CPUS",
thread::available_parallelism().unwrap().get(),
"PLATFORM_CPU_BITS_INT",
std::mem::size_of::<usize>() * 8,
);
}
......
......@@ -13,4 +13,4 @@ pub const OPT_LEVEL: &str = "-";
pub const MAKEFLAGS: &str = "-";
pub const FEATURES: [&str; 1] = ["cpu"];
pub const PLATFORM_CPU_BITS: &str = "64";
pub const NUM_CPUS: usize = 1;
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