Skip to content

Commit f7f7ae2

Browse files
committed
---
yaml --- r: 22933 b: refs/heads/master c: ff00edb h: refs/heads/master i: 22931: 4ae7495 v: v3
1 parent aba6a01 commit f7f7ae2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b14a6aca9f5f62df2ac12ee92d0ca37514908305
2+
refs/heads/master: ff00edb7e1fd669b7a333e0b3842f3751ee6d573
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/rustc/driver/driver.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ fn default_configuration(sess: session, argv0: ~str, input: input) ->
4444

4545
let mk = attr::mk_name_value_item_str;
4646

47-
let arch = alt sess.targ_cfg.arch {
48-
session::arch_x86 { ~"x86" }
49-
session::arch_x86_64 { ~"x86_64" }
50-
session::arch_arm { ~"arm" }
47+
let (arch,wordsz) = alt sess.targ_cfg.arch {
48+
session::arch_x86 { (~"x86",~"32") }
49+
session::arch_x86_64 { (~"x86_64",~"64") }
50+
session::arch_arm { (~"arm",~"32") }
5151
};
5252

5353
return ~[ // Target bindings.
5454
attr::mk_word_item(@os::family()),
5555
mk(@~"target_os", os::sysname()),
5656
mk(@~"target_family", os::family()),
5757
mk(@~"target_arch", arch),
58+
mk(@~"target_word_size", wordsz),
5859
mk(@~"target_libc", libc),
5960
// Build bindings.
6061
mk(@~"build_compiler", argv0),

0 commit comments

Comments
 (0)