diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-11-09 20:32:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-09 20:32:02 -0700 |
commit | 6e8c1b490ccbe5e84d248bab883515bc85394b5f (patch) | |
tree | 02e7604c4c35a828f257461a83be41ee0f02128c /src/lib.rs | |
parent | 9195462a49857ac4a22293f00cee6c79443c7272 (diff) | |
parent | f9323d1a0a9afae5e017d2ec47e56c75ea268e2c (diff) | |
download | rust-libc-6e8c1b490ccbe5e84d248bab883515bc85394b5f.tar.gz |
Merge pull request #446 from alexcrichton/link-cfg
Use `#[link(cfg(..))]` in preparation for libstd
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 45bf49a00d..5b80aca66c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,6 +75,7 @@ // Attributes needed when building as part of the standard library #![cfg_attr(stdbuild, feature(no_std, core, core_slice_ext, staged_api, custom_attribute, cfg_target_vendor))] +#![cfg_attr(stdbuild, feature(link_cfg))] #![cfg_attr(stdbuild, no_std)] #![cfg_attr(stdbuild, staged_api)] #![cfg_attr(stdbuild, allow(warnings))] |