diff options
| -rw-r--r-- | tests/lang_tests_common.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lang_tests_common.rs b/tests/lang_tests_common.rs index d5a0d71c4b2..f0a9e72f2ea 100644 --- a/tests/lang_tests_common.rs +++ b/tests/lang_tests_common.rs @@ -42,7 +42,9 @@ pub fn main_inner(profile: Profile) { .expect("failed to get absolute path of `gcc-path`") .display() .to_string(); - env::set_var("LD_LIBRARY_PATH", gcc_path); + unsafe { + env::set_var("LD_LIBRARY_PATH", gcc_path); + } fn rust_filter(path: &Path) -> bool { path.is_file() && path.extension().expect("extension").to_str().expect("to_str") == "rs" |
