mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Support erased functions in debug mode
This commit is contained in:
parent
cb56872566
commit
9702f30a61
1 changed files with 11 additions and 1 deletions
|
@ -740,9 +740,19 @@ pub fn standard_load_config(
|
|||
BuildOrdering::AlwaysBuild => ExecutionMode::Executable,
|
||||
};
|
||||
|
||||
let function_kind = if cfg!(debug_assertions) {
|
||||
if std::env::var("ROC_ERASE").is_ok() {
|
||||
FunctionKind::Erased
|
||||
} else {
|
||||
FunctionKind::LambdaSet
|
||||
}
|
||||
} else {
|
||||
FunctionKind::LambdaSet
|
||||
};
|
||||
|
||||
LoadConfig {
|
||||
target_info,
|
||||
function_kind: FunctionKind::LambdaSet,
|
||||
function_kind,
|
||||
render: RenderTarget::ColorTerminal,
|
||||
palette: DEFAULT_PALETTE,
|
||||
threading,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue