From 5aadb46bed828c825f0052bf69109eb037301430 Mon Sep 17 00:00:00 2001
From: Aaron Councilman <aaronjc4@illinois.edu>
Date: Sun, 2 Mar 2025 14:09:30 -0600
Subject: [PATCH] Fix key

---
 juno_scheduler/src/pm.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juno_scheduler/src/pm.rs b/juno_scheduler/src/pm.rs
index bbcdb95f..4c981bd9 100644
--- a/juno_scheduler/src/pm.rs
+++ b/juno_scheduler/src/pm.rs
@@ -1470,7 +1470,7 @@ fn interp_expr(
             };
             // To test for features, the scheduler needs to be invoked from a build script so that
             // Cargo provides the enabled features via environment variables
-            let key = val.to_uppercase().replace("-", "_");
+            let key = "CARGO_FEATURE_".to_string() + &val.to_uppercase().replace("-", "_");
             Ok((
                 Value::Boolean {
                     val: env::var(key).is_ok(),
-- 
GitLab