Skip to content

Commit 5acab2d

Browse files
author
Jethro Beekman
committed
Always set the RDRAND and RDSEED features on SGX
1 parent 3a31213 commit 5acab2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub fn target() -> Result<Target, String> {
4949
max_atomic_width: Some(64),
5050
panic_strategy: PanicStrategy::Abort,
5151
cpu: "x86-64".into(),
52+
features: "+rdrnd,+rdseed".into(),
5253
position_independent_executables: true,
5354
pre_link_args: iter::once(
5455
(LinkerFlavor::Gcc, PRE_LINK_ARGS.iter().cloned().map(String::from).collect())

0 commit comments

Comments
 (0)