summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/lib.rs
diff options
context:
space:
mode:
authorm-lima <m-lima@users.noreply.github.com>2023-02-13 17:52:10 +0100
committerGitHub <noreply@github.com>2023-02-13 17:52:10 +0100
commitd1b458e37bf740a3a45bb80fb62edfb440e32ac3 (patch)
tree2643c40fc73aee380fd007dfe91a7a23e71a8354 /zellij-server/src/lib.rs
parent5eb2d055ffa23f6775c12d7cc7e900e0d66a3def (diff)
chore(build): make the singlepass compiler opt-in through flags (#2146)
Diffstat (limited to 'zellij-server/src/lib.rs')
-rw-r--r--zellij-server/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/zellij-server/src/lib.rs b/zellij-server/src/lib.rs
index 9a4ddab2a..91e11f10b 100644
--- a/zellij-server/src/lib.rs
+++ b/zellij-server/src/lib.rs
@@ -819,13 +819,13 @@ fn init_session(
}
}
-#[cfg(any(feature = "force_cranelift", not(debug_assertions)))]
+#[cfg(not(feature = "singlepass"))]
fn get_store() -> Store {
log::info!("Compiling plugins using Cranelift");
Store::new(&wasmer::Universal::new(wasmer::Cranelift::default()).engine())
}
-#[cfg(not(any(feature = "force_cranelift", not(debug_assertions))))]
+#[cfg(feature = "singlepass")]
fn get_store() -> Store {
log::info!("Compiling plugins using Singlepass");
Store::new(&wasmer::Universal::new(wasmer::Singlepass::default()).engine())