Add experimental flag for roc_erase

This commit is contained in:
Ayaz Hafiz 2023-07-12 13:47:07 -05:00
parent 9702f30a61
commit b5db3f68e1
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -740,8 +740,9 @@ pub fn standard_load_config(
BuildOrdering::AlwaysBuild => ExecutionMode::Executable,
};
// UNSTABLE(lambda-erasure)
let function_kind = if cfg!(debug_assertions) {
if std::env::var("ROC_ERASE").is_ok() {
if std::env::var("EXPERIMENTAL_ROC_ERASE").is_ok() {
FunctionKind::Erased
} else {
FunctionKind::LambdaSet