We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dd8a43 commit a537aa8Copy full SHA for a537aa8
riscv-semihosting/CHANGELOG.md
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
6
## [Unreleased]
7
8
+### Changed
9
+
10
+- Made `cfg` variable selection more robust for custom targets
11
12
## [v0.1.0] - 2023-01-18
13
14
- Add recommendation for `semihosting` in README.md.
riscv-semihosting/build.rs
@@ -1,6 +1,8 @@
1
use std::env;
2
3
fn main() {
4
+ println!("cargo:rustc-check-cfg=cfg(riscv)");
let target = env::var("TARGET").unwrap();
if target.starts_with("riscv") {
0 commit comments