mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-17 18:40:17 +00:00
Add experimental flag for roc_erase
This commit is contained in:
parent
9702f30a61
commit
b5db3f68e1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue