diff options
author | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-04-07 23:17:37 -0500 |
---|---|---|
committer | Ryan Zoeller <rtzoeller@rtzoeller.com> | 2022-06-26 19:36:45 -0500 |
commit | 1fa1bb19b0ba905a7d89ad3d0496d0970245a3f1 (patch) | |
tree | c8422479d09eb2fc2ac77be025b248b6210e8e5a /build.rs | |
parent | 84b02b98a9e9d5f368241fefaebee2319dc058a9 (diff) | |
download | nix-1fa1bb19b0ba905a7d89ad3d0496d0970245a3f1.zip |
Document aliases for functions like getuid()
Add the autocfg crate as a build dependency, and introduce
has_doc_alias as a conditional compilation symbol.
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build.rs b/build.rs new file mode 100644 index 00000000..ad78ab3f --- /dev/null +++ b/build.rs @@ -0,0 +1,7 @@ +fn main() { + let cfg = autocfg::new(); + + if cfg.probe_rustc_version(1, 52) { + autocfg::emit("has_doc_alias"); + } +} |