Skip to content

Commit

Permalink
Merge pull request #5 from JohnTitor/riscv64gc
Browse files Browse the repository at this point in the history
Add `riscv64gc` arch support
  • Loading branch information
JohnTitor committed Apr 11, 2020
2 parents 4787a04 + fd7bfb2 commit 8ac57fb
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 8ac57fb

Please sign in to comment.