Skip to content

Commit eed3a36

Browse files
committed
rustc: Add 'target_family' to default configuration
1 parent 2c5a660 commit eed3a36

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/rustc/driver/driver.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ fn default_configuration(sess: session, argv0: str, input: input) ->
5050

5151
ret [ // Target bindings.
5252
mk("target_os", os::sysname()),
53+
mk("target_family", os::family()),
5354
mk("target_arch", arch),
5455
mk("target_libc", libc),
5556
// Build bindings.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[cfg(target_family = "windows")]
2+
fn main() {
3+
}
4+
5+
#[cfg(target_family = "unix")]
6+
fn main() {
7+
}

0 commit comments

Comments
 (0)