Skip to content

Commit

Permalink
Add riscv64gc arch support
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Apr 11, 2020
1 parent 466af76 commit fd7bfb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
("asmjs", "32", "little")
} else if target.starts_with("wasm32") {
("wasm32", "32", "little")
} else if target.starts_with("riscv64gc") {
("riscv64", "64", "little")
} else {
panic!("unknown arch/pointer width: {}", target)
};
Expand Down

0 comments on commit fd7bfb2

Please sign in to comment.