sp1_core_executor/
build.rs1#[allow(clippy::print_stdout)]
4pub fn detect_executor() {
5 assert!(std::env::var("OUT_DIR").is_ok(), "detect_executor is not run inside build script!");
6
7 #[cfg(all(target_arch = "x86_64", target_endian = "little", target_os = "linux",))]
8 println!("cargo:rustc-cfg=sp1_native_executor_available");
9
10 #[cfg(all(
11 target_arch = "x86_64",
12 target_endian = "little",
13 target_os = "linux",
14 not(feature = "profiling"),
15 not(feature = "mprotect")
16 ))]
17 println!("cargo:rustc-cfg=sp1_use_native_executor");
18
19 #[cfg(not(all(
20 target_arch = "x86_64",
21 target_endian = "little",
22 target_os = "linux",
23 not(feature = "profiling"),
24 not(feature = "mprotect")
25 )))]
26 println!("cargo:rustc-cfg=sp1_use_portable_executor");
27}