We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Ztls-model=initial-exec
1 parent f4d215e commit f073462Copy full SHA for f073462
src/bootstrap/src/bin/rustc.rs
@@ -28,6 +28,9 @@ use shared_helpers::{
28
#[path = "../utils/shared_helpers.rs"]
29
mod shared_helpers;
30
31
+#[path = "../utils/proc_macro_deps.rs"]
32
+mod proc_macro_deps;
33
+
34
fn main() {
35
let orig_args = env::args_os().skip(1).collect::<Vec<_>>();
36
let mut args = orig_args.clone();
@@ -167,7 +170,7 @@ fn main() {
167
170
// issue https://github.com/rust-lang/rust/issues/100530
168
171
if env::var("RUSTC_TLS_MODEL_INITIAL_EXEC").is_ok()
169
172
&& crate_type != Some("proc-macro")
- && !matches!(crate_name, Some("proc_macro2" | "quote" | "syn" | "synstructure"))
173
+ && proc_macro_deps::CRATES.binary_search(&crate_name.unwrap_or_default()).is_err()
174
{
175
cmd.arg("-Ztls-model=initial-exec");
176
}
0 commit comments