diff options
| author | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2014-03-13 14:35:24 +0800 |
|---|---|---|
| committer | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2014-03-14 11:13:36 +0800 |
| commit | 6d7e86d099cf33821398731f750b36df564ca5d2 (patch) | |
| tree | 4cf087332b5466b6fcc10edf8027cf04add6c166 /src/libstd/sync | |
| parent | b4d324334cb48198c27d782002d75eba14a6abde (diff) | |
| download | rust-6d7e86d099cf33821398731f750b36df564ca5d2.tar.gz rust-6d7e86d099cf33821398731f750b36df564ca5d2.zip | |
fix MIPS target
I ignored AtomicU64 methods on MIPS target because libgcc doesn't implement MIPS32 64-bit atomic operations. Otherwise it would cause link failure.
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/atomics.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sync/atomics.rs b/src/libstd/sync/atomics.rs index b4d465c0397..b38a5aed16f 100644 --- a/src/libstd/sync/atomics.rs +++ b/src/libstd/sync/atomics.rs @@ -225,6 +225,10 @@ impl AtomicInt { } } +// temporary workaround +// it causes link failure on MIPS target +// libgcc doesn't implement 64-bit atomic operations for MIPS32 +#[cfg(not(target_arch = "mips"))] impl AtomicU64 { pub fn new(v: u64) -> AtomicU64 { AtomicU64 { v:v, nopod: marker::NoPod } |
