diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-04 14:59:42 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-07 12:04:28 -0800 |
| commit | 3dbd32854f6bdee94c98c5e3e5da58fb79d79fd9 (patch) | |
| tree | c38be4cf6f5ffdf89a3983635849a90b502d87fb /src/rustllvm/RustWrapper.cpp | |
| parent | 45cbdec4174778bf915f17561ef971c068a7fcbc (diff) | |
| download | rust-3dbd32854f6bdee94c98c5e3e5da58fb79d79fd9.tar.gz rust-3dbd32854f6bdee94c98c5e3e5da58fb79d79fd9.zip | |
rustc: Process #[cfg]/#[cfg_attr] on crates
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
