Skip to content

Commit 1ddc6b6

Browse files
committed
Link the build-script-examples page in cargo::rustc-check-cfg
1 parent 5a43a45 commit 1ddc6b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/doc/src/reference/build-scripts.md

+5
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,13 @@ if foo_bar_condition {
292292
}
293293
```
294294

295+
For a more complete example see in the [build script examples][build-script-examples] page
296+
the [conditional compilation][conditional-compilation-example] example.
297+
295298
[check-cfg-blog-post]: https://blog.rust-lang.org/2024/05/06/check-cfg.html
296299
[option-check-cfg]: ../../rustc/command-line-arguments.md#option-check-cfg
300+
[build-script-examples]: build-script-examples.md
301+
[conditional-compilation-example]: build-script-examples.md#conditional-compilation
297302

298303
### `cargo::rustc-env=VAR=VALUE` {#rustc-env}
299304

0 commit comments

Comments
 (0)