| 1 |
diff --git a/examples/hello.rs b/examples/hello.rs |
| 2 |
deleted file mode 100644 |
| 3 |
index 0ca9c76..0000000 |
| 4 |
--- a/examples/hello.rs |
| 5 |
+++ /dev/null |
| 6 |
@@ -1,21 +0,0 @@ |
| 7 |
-// Copyright 2014 The syscall.rs Project Developers. See the |
| 8 |
-// COPYRIGHT file at the top-level directory of this distribution. |
| 9 |
-// |
| 10 |
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 11 |
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 12 |
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 13 |
-// option. This file may not be copied, modified, or distributed |
| 14 |
-// except according to those terms. |
| 15 |
- |
| 16 |
-#[macro_use] |
| 17 |
-extern crate sc; |
| 18 |
- |
| 19 |
-fn write(fd: usize, buf: &[u8]) { |
| 20 |
- unsafe { |
| 21 |
- syscall!(WRITE, fd, buf.as_ptr(), buf.len()); |
| 22 |
- } |
| 23 |
-} |
| 24 |
- |
| 25 |
-fn main() { |
| 26 |
- write(1, "Hello, world!\n".as_bytes()); |
| 27 |
-} |
| 28 |
diff --git a/src/lib.rs b/src/lib.rs |
| 29 |
index 4a586f6..0406fb3 100644 |
| 30 |
--- a/src/lib.rs |
| 31 |
+++ b/src/lib.rs |
| 32 |
@@ -24,15 +24,7 @@ |
| 33 |
#![allow(deprecated)] // llvm_asm! |
| 34 |
#![deny(warnings)] |
| 35 |
#![no_std] |
| 36 |
-#![cfg_attr(any( |
| 37 |
- target_arch = "arm", |
| 38 |
- target_arch = "mips", |
| 39 |
- target_arch = "mips64", |
| 40 |
- target_arch = "powerpc", |
| 41 |
- target_arch = "powerpc64", |
| 42 |
- target_arch = "sparc64", |
| 43 |
- target_arch = "x86" |
| 44 |
-), feature(llvm_asm))] |
| 45 |
+#![cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))] |
| 46 |
|
| 47 |
#[cfg(test)] |
| 48 |
extern crate std; |
| 49 |
diff --git a/tests/test.rs b/tests/test.rs |
| 50 |
index ca8859b..ab90035 100644 |
| 51 |
--- a/tests/test.rs |
| 52 |
+++ b/tests/test.rs |
| 53 |
@@ -7,6 +7,8 @@ |
| 54 |
// option. This file may not be copied, modified, or distributed |
| 55 |
// except according to those terms. |
| 56 |
|
| 57 |
+#![cfg(any(target_arch = "aarch64", target_arch = "riscv64", target_arch = "x86_64"))] |
| 58 |
+ |
| 59 |
#[macro_use] |
| 60 |
extern crate sc; |
| 61 |
|