Skip to content

Commit 44b12a0

Browse files
committed
compiler: update freebsd and netbsd base specs.
both support thread local.
1 parent 867d39c commit 44b12a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_target/src/spec/base/freebsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub fn opts() -> TargetOptions {
99
crt_static_respected: true,
1010
position_independent_executables: true,
1111
relro_level: RelroLevel::Full,
12+
has_thread_local: true,
1213
abi_return_struct_as_int: true,
1314
default_dwarf_version: 2,
1415
..Default::default()

compiler/rustc_target/src/spec/base/netbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub fn opts() -> TargetOptions {
99
has_rpath: true,
1010
position_independent_executables: true,
1111
relro_level: RelroLevel::Full,
12+
has_thread_local: true,
1213
use_ctors_section: true,
1314
default_dwarf_version: 2,
1415
..Default::default()

0 commit comments

Comments
 (0)