We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25bd5a5 commit 53f1420Copy full SHA for 53f1420
src/rdrand.rs
@@ -31,8 +31,11 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
31
Err(Error::UNKNOWN)
32
}
33
34
+// "rdrand" target feature requires "+rdrand" flag, see https://github.com/rust-lang/rust/issues/49653.
35
#[cfg(all(target_env = "sgx", not(target_feature = "rdrand")))]
-compile_error!("SGX targets must enable RDRAND to get randomness");
36
+compile_error!(
37
+ "SGX targets require 'rdrand' target feature. Enable by using -C target-feature=+rdrnd."
38
+);
39
40
// TODO use is_x86_feature_detected!("rdrand") when that works in core. See:
41
// https://github.com/rust-lang-nursery/stdsimd/issues/464
0 commit comments