Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Included command to determine default target features #363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions perf-guide/src/target-feature/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ and using a SIMD instruction which is not supported will trigger undefined behav
To allow building safe, portable programs, the Rust compiler will **not**, by default,
generate any sort of vector instructions, unless it can statically determine
they are supported. For example, on AMD64, SSE2 support is architecturally guaranteed.
The `x86_64-apple-darwin` target enables up to SSSE3. The get a defintive list of
which features are enabled by default on various platforms, refer to the target
specifications [in the compiler's source code][targets].
The get a defintive list of which features are enabled by default on various platforms, refer to the target
specifications [in the compiler's source code][targets]. Youc an also determine the default vector instructiosn with
`rustc --print cfg` for the current target or `rustc --print cfg --target={target}` for a different target.

[targets]: https://github.com/rust-lang/rust/tree/master/src/librustc_target/spec
Loading