@@ -1279,9 +1279,8 @@ pub struct TargetOptions {
12791279 /// `argc` and `argv` values.
12801280 pub main_needs_argc_argv : bool ,
12811281
1282- /// Flag indicating whether ELF TLS (e.g., #[thread_local]) is available for
1283- /// this target.
1284- pub has_elf_tls : bool ,
1282+ /// Flag indicating whether #[thread_local] is available for this target.
1283+ pub has_thread_local : bool ,
12851284 // This is mainly for easy compatibility with emscripten.
12861285 // If we give emcc .o files that are actually .bc files it
12871286 // will 'just work'.
@@ -1487,7 +1486,7 @@ impl Default for TargetOptions {
14871486 archive_format : "gnu" . to_string ( ) ,
14881487 main_needs_argc_argv : true ,
14891488 allow_asm : true ,
1490- has_elf_tls : false ,
1489+ has_thread_local : false ,
14911490 obj_is_bitcode : false ,
14921491 forces_embed_bitcode : false ,
14931492 bitcode_llvm_cmdline : String :: new ( ) ,
@@ -2074,7 +2073,7 @@ impl Target {
20742073 key ! ( archive_format) ;
20752074 key ! ( allow_asm, bool ) ;
20762075 key ! ( main_needs_argc_argv, bool ) ;
2077- key ! ( has_elf_tls , bool ) ;
2076+ key ! ( has_thread_local , bool ) ;
20782077 key ! ( obj_is_bitcode, bool ) ;
20792078 key ! ( forces_embed_bitcode, bool ) ;
20802079 key ! ( bitcode_llvm_cmdline) ;
@@ -2315,7 +2314,7 @@ impl ToJson for Target {
23152314 target_option_val ! ( archive_format) ;
23162315 target_option_val ! ( allow_asm) ;
23172316 target_option_val ! ( main_needs_argc_argv) ;
2318- target_option_val ! ( has_elf_tls ) ;
2317+ target_option_val ! ( has_thread_local ) ;
23192318 target_option_val ! ( obj_is_bitcode) ;
23202319 target_option_val ! ( forces_embed_bitcode) ;
23212320 target_option_val ! ( bitcode_llvm_cmdline) ;
0 commit comments