rustc: Enable #[cfg(windows)] and #[cfg(unix)]
This commit is contained in:
parent
eed3a36511
commit
469ff08e64
@ -49,6 +49,7 @@ fn default_configuration(sess: session, argv0: str, input: input) ->
|
||||
};
|
||||
|
||||
ret [ // Target bindings.
|
||||
attr::mk_word_item(os::family()),
|
||||
mk("target_os", os::sysname()),
|
||||
mk("target_family", os::family()),
|
||||
mk("target_arch", arch),
|
||||
|
7
src/test/run-pass/cfg-family.rs
Normal file
7
src/test/run-pass/cfg-family.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#[cfg(windows)]
|
||||
fn main() {
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn main() {
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user