We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 712caea commit bc026f5Copy full SHA for bc026f5
1 file changed
Modules/cpython-sys/build.rs
@@ -70,7 +70,8 @@ fn prefer_newest_libclang() {
70
}
71
if let Some((ver, lib_dir)) = best {
72
eprintln!("cpython-sys: using libclang from llvm-{ver}");
73
- env::set_var("LIBCLANG_PATH", &lib_dir);
+ // SAFETY: build scripts are single-threaded.
74
+ unsafe { env::set_var("LIBCLANG_PATH", &lib_dir) };
75
76
77
0 commit comments