Skip to content

Commit

Permalink
Use correct flag name
Browse files Browse the repository at this point in the history
The flag name is +rdrand not +rdrnd

Signed-off-by: Joe Richey <joerichey@google.com>
  • Loading branch information
josephlr committed Feb 8, 2023
1 parent 9ceb7e5 commit a56faa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rdrand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
Err(Error::FAILED_RDRAND)
}

// "rdrand" target feature requires "+rdrnd" flag, see https://github.com/rust-lang/rust/issues/49653.
// "rdrand" target feature requires "+rdrand" flag, see https://github.com/rust-lang/rust/issues/49653.
#[cfg(all(target_env = "sgx", not(target_feature = "rdrand")))]
compile_error!(
"SGX targets require 'rdrand' target feature. Enable by using -C target-feature=+rdrnd."
"SGX targets require 'rdrand' target feature. Enable by using -C target-feature=+rdrand."
);

#[cfg(target_feature = "rdrand")]
Expand Down

0 comments on commit a56faa8

Please sign in to comment.