Skip to content

Commit

Permalink
Mention the aarch64 runtime feature detection macro
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgemmell committed Jul 6, 2021
1 parent ab60513 commit c74a311
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/attributes/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ enabling or disabling compilation of code based on compile-time settings. Note
that this option is not affected by the `target_feature` attribute, and is
only driven by the features enabled for the entire crate.

See the [`is_x86_feature_detected`] macro in the standard library for runtime
feature detection on the x86 platforms.
See the [`is_x86_feature_detected`] or [`is_aarch64_feature_detected`] macros
in the standard library for runtime feature detection on these platforms.

> Note: `rustc` has a default set of features enabled for each target and CPU.
> The CPU may be chosen with the [`-C target-cpu`] flag. Individual features
Expand Down Expand Up @@ -268,6 +268,7 @@ trait object whose methods are attributed.
[`-C target-cpu`]: ../../rustc/codegen-options/index.html#target-cpu
[`-C target-feature`]: ../../rustc/codegen-options/index.html#target-feature
[`is_x86_feature_detected`]: ../../std/macro.is_x86_feature_detected.html
[`is_aarch64_feature_detected`]: ../../std/macro.is_aarch64_feature_detected.html
[`target_feature` conditional compilation option]: ../conditional-compilation.md#target_feature
[attribute]: ../attributes.md
[attributes]: ../attributes.md
Expand Down

0 comments on commit c74a311

Please sign in to comment.