@@ -1279,9 +1279,8 @@ pub struct TargetOptions {
1279
1279
/// `argc` and `argv` values.
1280
1280
pub main_needs_argc_argv : bool ,
1281
1281
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 ,
1285
1284
// This is mainly for easy compatibility with emscripten.
1286
1285
// If we give emcc .o files that are actually .bc files it
1287
1286
// will 'just work'.
@@ -1487,7 +1486,7 @@ impl Default for TargetOptions {
1487
1486
archive_format : "gnu" . to_string ( ) ,
1488
1487
main_needs_argc_argv : true ,
1489
1488
allow_asm : true ,
1490
- has_elf_tls : false ,
1489
+ has_thread_local : false ,
1491
1490
obj_is_bitcode : false ,
1492
1491
forces_embed_bitcode : false ,
1493
1492
bitcode_llvm_cmdline : String :: new ( ) ,
@@ -2074,7 +2073,7 @@ impl Target {
2074
2073
key ! ( archive_format) ;
2075
2074
key ! ( allow_asm, bool ) ;
2076
2075
key ! ( main_needs_argc_argv, bool ) ;
2077
- key ! ( has_elf_tls , bool ) ;
2076
+ key ! ( has_thread_local , bool ) ;
2078
2077
key ! ( obj_is_bitcode, bool ) ;
2079
2078
key ! ( forces_embed_bitcode, bool ) ;
2080
2079
key ! ( bitcode_llvm_cmdline) ;
@@ -2315,7 +2314,7 @@ impl ToJson for Target {
2315
2314
target_option_val ! ( archive_format) ;
2316
2315
target_option_val ! ( allow_asm) ;
2317
2316
target_option_val ! ( main_needs_argc_argv) ;
2318
- target_option_val ! ( has_elf_tls ) ;
2317
+ target_option_val ! ( has_thread_local ) ;
2319
2318
target_option_val ! ( obj_is_bitcode) ;
2320
2319
target_option_val ! ( forces_embed_bitcode) ;
2321
2320
target_option_val ! ( bitcode_llvm_cmdline) ;
0 commit comments