File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ use shared_helpers::{
28
28
#[ path = "../utils/shared_helpers.rs" ]
29
29
mod shared_helpers;
30
30
31
+ #[ path = "../utils/proc_macro_deps.rs" ]
32
+ mod proc_macro_deps;
33
+
31
34
fn main ( ) {
32
35
let orig_args = env:: args_os ( ) . skip ( 1 ) . collect :: < Vec < _ > > ( ) ;
33
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" )
170
- && ! matches ! ( crate_name, Some ( "proc_macro2" | "quote" | "syn" | "synstructure" ) )
173
+ && proc_macro_deps :: CRATES . binary_search ( & crate_name. unwrap_or_default ( ) ) . is_err ( )
171
174
{
172
175
cmd. arg ( "-Ztls-model=initial-exec" ) ;
173
176
}
You can’t perform that action at this time.
0 commit comments