Skip to content
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
16 changes: 13 additions & 3 deletions src/conditional-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,25 @@ r[cfg.target_arch.def]
Key-value option set once with the target's CPU architecture. The value is similar to the first element of the platform's target triple, but not identical.

r[cfg.target_arch.values]
Example values:
Example values (Note that not all of these are available on stable rust):

* `"x86"`
* `"x86_64"`
* `"arm"`
* `"aarch64"`
* `"amdgpu"`
* `"hexagon"`
* `"riscv32"`
* `"riscv64"`
* `"mips"`
* `"powerpc"`
* `"powerpc64"`
* `"arm"`
* `"aarch64"`
* `"nvptx"`
* `"wasm"`
* `"loongarch32"`
* `"loongarch64"`
* `"s390x"`


r[cfg.target_feature]
### `target_feature`
Expand Down
Loading