Skip to content

Commit

Permalink
Add missing arch into Cargo.toml and build files.
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualabs committed Feb 12, 2024
1 parent 098a8e5 commit 2006821
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pkg-config = { version = "0.3" }
[features]
default = ["arch_all"]
dynamic_linkage = []
arch_all = ["arch_x86", "arch_arm", "arch_aarch64", "arch_riscv", "arch_mips", "arch_sparc", "arch_m68k", "arch_ppc", "arch_s390x", "arch_tricore"]
arch_all = ["arch_x86", "arch_arm", "arch_aarch64", "arch_riscv", "arch_mips", "arch_sparc", "arch_m68k", "arch_ppc", "arch_s390x", "arch_tricore", "arch_rh850"]
arch_x86 = []
arch_arm = []
arch_aarch64 = []
Expand All @@ -53,3 +53,4 @@ arch_m68k = []
arch_ppc = []
arch_s390x = []
arch_tricore = []
arch_rh850 = []
3 changes: 3 additions & 0 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ fn build_with_cmake() {
if std::env::var("CARGO_FEATURE_ARCH_TRICORE").is_ok() {
archs.push_str("tricore;");
}
if std::env::var("CARGO_FEATURE_ARCH_RH850").is_ok() {
archs.push_str("rh850;");
}

if !archs.is_empty() {
archs.pop();
Expand Down
1 change: 1 addition & 0 deletions bindings/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ mod riscv;
mod s390x;
mod sparc;
mod tricore;
mod rh850;
mod x86;

#[derive(Debug)]
Expand Down

0 comments on commit 2006821

Please sign in to comment.