We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d1068 commit b1ebc55Copy full SHA for b1ebc55
src/config.rs
@@ -64,8 +64,13 @@ impl Default for BackendConfig {
64
BackendConfig {
65
codegen_mode: CodegenMode::Aot,
66
jit_args: {
67
- let args = std::env::var("CG_CLIF_JIT_ARGS").unwrap_or_else(|_| String::new());
68
- args.split(' ').map(|arg| arg.to_string()).collect()
+ match std::env::var("CG_CLIF_JIT_ARGS") {
+ Ok(args) => args.split(' ').map(|arg| arg.to_string()).collect(),
69
+ Err(std::env::VarError::NotPresent) => vec![],
70
+ Err(std::env::VarError::NotUnicode(s)) => {
71
+ panic!("CG_CLIF_JIT_ARGS not unicode: {:?}", s);
72
+ }
73
74
},
75
enable_verifier: cfg!(debug_assertions) || bool_env_var("CG_CLIF_ENABLE_VERIFIER"),
76
disable_incr_cache: bool_env_var("CG_CLIF_DISABLE_INCR_CACHE"),
0 commit comments