From cfa5ca26eadf707728d7f5d066b401714fc0124a Mon Sep 17 00:00:00 2001 From: Urgau Date: Mon, 6 May 2024 22:10:33 +0200 Subject: [PATCH] Link the build-script-examples page in cargo::rustc-check-cfg --- src/doc/src/reference/build-scripts.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/doc/src/reference/build-scripts.md b/src/doc/src/reference/build-scripts.md index fb689e9767a9..dded71df8ae0 100644 --- a/src/doc/src/reference/build-scripts.md +++ b/src/doc/src/reference/build-scripts.md @@ -292,8 +292,13 @@ if foo_bar_condition { } ``` +For a more complete example see in the [build script examples](build-script-examples) page +the [conditional compilation][conditional-compilation-example] example. + [check-cfg-blog-post]: https://blog.rust-lang.org/2024/05/06/check-cfg.html [option-check-cfg]: ../../rustc/command-line-arguments.md#option-check-cfg +[build-script-examples]: build-script-examples.md +[conditional-compilation-example]: build-script-examples.md#conditional-compilation ### `cargo::rustc-env=VAR=VALUE` {#rustc-env}