Fix env var typo

This commit is contained in:
Ayaz Hafiz 2022-10-31 09:46:07 -05:00
parent bb02104436
commit 04e8e26faf
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -4,6 +4,8 @@ use std::path::{Path, PathBuf};
use bumpalo::Bump;
use roc_module::symbol::ModuleId;
const ROC_SKIP_SUBS_CACHE: &str = "ROC_SKIP_SUBS_CACHE";
const SKIP_SUBS_CACHE: bool = {
match option_env!("ROC_SKIP_SUBS_CACHE") {
Some(s) => s.len() == 1 && s.as_bytes()[0] == b'1',
@ -97,7 +99,7 @@ fn write_types_for_module_real(module_id: ModuleId, filename: &str, output_path:
};
if module.total_problems() > 0 {
panic!("Problems were found! Refusing to build cached subs.\nTry building with ROC_SKIP_SUBS_CACHE=1 to see them.");
panic!("Problems were found! Refusing to build cached subs.\nTry building with {}=1 to see them.", ROC_SKIP_SUBS_CACHE);
}
let subs = module.solved.into_inner();