From a487990a5d4599bf26767a31d0e4c790ac2f5d4a Mon Sep 17 00:00:00 2001 From: CKingX Date: Sat, 4 May 2024 13:36:30 -0700 Subject: [PATCH] Update features.md * Included the rustc command to determine default features. --- perf-guide/src/target-feature/features.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perf-guide/src/target-feature/features.md b/perf-guide/src/target-feature/features.md index b93030ca6..64665f855 100644 --- a/perf-guide/src/target-feature/features.md +++ b/perf-guide/src/target-feature/features.md @@ -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