Skip to content

Commit

Permalink
Always set the RDRAND and RDSEED features on SGX
Browse files Browse the repository at this point in the history
  • Loading branch information
Jethro Beekman committed Dec 11, 2018
1 parent 3a31213 commit 5acab2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub fn target() -> Result<Target, String> {
max_atomic_width: Some(64),
panic_strategy: PanicStrategy::Abort,
cpu: "x86-64".into(),
features: "+rdrnd,+rdseed".into(),
position_independent_executables: true,
pre_link_args: iter::once(
(LinkerFlavor::Gcc, PRE_LINK_ARGS.iter().cloned().map(String::from).collect())
Expand Down

0 comments on commit 5acab2d

Please sign in to comment.