Skip to content

Commit cc1e355

Browse files
committed
Auto merge of #14164 - madsmtm:target_abi, r=weihanglo
Document `CARGO_CFG_TARGET_ABI` This was [stabilized](rust-lang/rust#119590) in 1.78, but a corresponding entry in Cargo's documentation is still missing.
2 parents 9441b91 + 8852019 commit cc1e355

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/src/reference/environment-variables.md

+2
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
347347
* `CARGO_CFG_TARGET_ARCH=x86_64` --- The CPU [target architecture].
348348
* `CARGO_CFG_TARGET_VENDOR=apple` --- The [target vendor].
349349
* `CARGO_CFG_TARGET_ENV=gnu` --- The [target environment] ABI.
350+
* `CARGO_CFG_TARGET_ABI=sim` --- The [target ABI].
350351
* `CARGO_CFG_TARGET_POINTER_WIDTH=64` --- The CPU [pointer width].
351352
* `CARGO_CFG_TARGET_ENDIAN=little` --- The CPU [target endianness].
352353
* `CARGO_CFG_TARGET_FEATURE=mmx,sse` --- List of CPU [target features] enabled.
@@ -397,6 +398,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
397398
[target architecture]: ../../reference/conditional-compilation.html#target_arch
398399
[target vendor]: ../../reference/conditional-compilation.html#target_vendor
399400
[target environment]: ../../reference/conditional-compilation.html#target_env
401+
[target ABI]: ../../reference/conditional-compilation.html#target_abi
400402
[pointer width]: ../../reference/conditional-compilation.html#target_pointer_width
401403
[target endianness]: ../../reference/conditional-compilation.html#target_endian
402404
[target features]: ../../reference/conditional-compilation.html#target_feature

0 commit comments

Comments
 (0)