浏览代码

Revert 'hint that this package should be built under RISC-V'

Allows to run tests on all targets
luojia65 3 年之前
父节点
当前提交
869148351a
共有 2 个文件被更改,包括 0 次插入7 次删除
  1. 0 2
      CHANGELOG.md
  2. 0 5
      src/lib.rs

+ 0 - 2
CHANGELOG.md

@@ -9,8 +9,6 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ### Added
 
-- Note in code compilation that this package should be built into RISC-V targets
-
 ### Modified
 
 ## [0.2.1] - 2022-02-14

+ 0 - 5
src/lib.rs

@@ -179,11 +179,6 @@ mod timer;
 
 mod util;
 
-// RustSBI only supports RISC-V; raise error if built into non RISC-V targets.
-#[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
-compile_error!("not RISC-V RV32 or RV64 targets! RustSBI only supports RISC-V, it's likely that the package is cross built into targets other than RISC-V.
-Use parameter like `--target riscv64imac-unknown-none-elf` and try again.");
-
 const SBI_SPEC_MAJOR: usize = 0;
 const SBI_SPEC_MINOR: usize = 3;