diff options
| author | bors <bors@rust-lang.org> | 2014-11-08 09:01:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-08 09:01:33 +0000 |
| commit | ebc625ad3eaa2ee630c6c8203106826ad23abc98 (patch) | |
| tree | 27b1d977d7431350799c5d8e1a35a85eb346c27a /src/rustllvm/RustWrapper.cpp | |
| parent | afd657e20724f6a9093e34818c4923aa8601cafb (diff) | |
| parent | 3dbd32854f6bdee94c98c5e3e5da58fb79d79fd9 (diff) | |
| download | rust-ebc625ad3eaa2ee630c6c8203106826ad23abc98.tar.gz rust-ebc625ad3eaa2ee630c6c8203106826ad23abc98.zip | |
auto merge of #18634 : alexcrichton/rust/cfg-attr-crate-level, r=sfackler
This commit implements processing these two attributes at the crate level as well as at the item level. When #[cfg] is applied at the crate level, then the entire crate will be omitted if the cfg doesn't match. The #[cfg_attr] attribute is processed as usual in that the attribute is included or not depending on whether the cfg matches. This was spurred on by motivations of #18585 where #[cfg_attr] annotations will be applied at the crate-level. cc #18585
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
