Skip to content

Commit dec4740

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

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub fn opts() -> TargetOptions {
88
has_rpath: true,
99
position_independent_executables: true,
1010
relro_level: RelroLevel::Full,
11+
has_thread_local: true,
1112
default_dwarf_version: 2,
1213
..Default::default()
1314
}

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)