]> git.lizzy.rs Git - rust.git/commitdiff
Always set the RDRAND and RDSEED features on SGX
authorJethro Beekman <jethro@fortanix.com>
Tue, 11 Dec 2018 12:34:33 +0000 (18:04 +0530)
committerJethro Beekman <jethro@fortanix.com>
Tue, 11 Dec 2018 14:24:49 +0000 (19:54 +0530)
src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs

index 07383b3d64862430b332413b5490cad227025756..5b6d8abc5ef3e51c0244e07c971266f1588b7a8f 100644 (file)
@@ -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())