about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-08 09:01:33 +0000
committerbors <bors@rust-lang.org>2014-11-08 09:01:33 +0000
commitebc625ad3eaa2ee630c6c8203106826ad23abc98 (patch)
tree27b1d977d7431350799c5d8e1a35a85eb346c27a /src/rustllvm/RustWrapper.cpp
parentafd657e20724f6a9093e34818c4923aa8601cafb (diff)
parent3dbd32854f6bdee94c98c5e3e5da58fb79d79fd9 (diff)
downloadrust-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