Skip to content

Commit

Permalink
fix(build): rt cfg flags warning
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Oct 3, 2024
1 parent a6d5c34 commit 47b30d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qingke-rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ fn main() {
let target = env::var("TARGET").unwrap();
let cargo_flags = env::var("CARGO_ENCODED_RUSTFLAGS").unwrap();
// set configuration flags depending on the target

println!("cargo::rustc-check-cfg=cfg(riscvf)");
println!("cargo::rustc-check-cfg=cfg(riscvd)");

if target.starts_with("riscv") {
println!("cargo:rustc-cfg=riscv");

Expand Down

0 comments on commit 47b30d7

Please sign in to comment.