Skip to content

Commit

Permalink
Link the build-script-examples page in cargo::rustc-check-cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed May 6, 2024
1 parent 5a43a45 commit cfa5ca2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/doc/src/reference/build-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit cfa5ca2

Please sign in to comment.