Skip to content

Commit 9ab7937

Browse files
committed
---
yaml --- r: 12661 b: refs/heads/master c: dfc81df h: refs/heads/master i: 12659: 4acf029 v: v3
1 parent b5b5ee3 commit 9ab7937

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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: 09624a676a975326ae7d7e25e7050b6cc22161e9
2+
refs/heads/master: dfc81dfa90d16243f1f3ed556868d53107ee3227
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/os.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import consts::*;
2828
export close, fclose, fsync_fd, waitpid;
2929
export env, getenv, setenv, fdopen, pipe;
3030
export getcwd, dll_filename, self_exe_path;
31-
export exe_suffix, dll_suffix, sysname;
31+
export exe_suffix, dll_suffix, sysname, arch;
3232
export homedir, list_dir, list_dir_path, path_is_dir, path_exists,
3333
make_absolute, make_dir, remove_dir, change_dir, remove_file,
3434
copy_file;
@@ -700,8 +700,14 @@ mod consts {
700700
fn dll_suffix() -> str { ".dll" }
701701
}
702702

703+
#[cfg(target_arch = "x86")]
704+
fn arch() -> str { "x86" }
703705

706+
#[cfg(target_arch = "x86_64")]
707+
fn arch() -> str { "x86_64" }
704708

709+
#[cfg(target_arch = "arm")]
710+
fn arch() -> str { "arm" }
705711

706712
#[cfg(test)]
707713
mod tests {

0 commit comments

Comments
 (0)