Skip to content

Commit 60348e8

Browse files
nathanvoglsamfu5ha
andauthored
Update PerformanceAPI version and add supprot for ARM binaries (#20)
* Update PerformanceAPI version and add supprot for ARM binaries * remove old clippy lint --------- Co-authored-by: Gray Olson <[email protected]>
1 parent 17077d5 commit 60348e8

11 files changed

+7
-5
lines changed

β€Ž.cargo/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ rustflags = [
4444
"-Wclippy::match_wild_err_arm",
4545
"-Wclippy::match_wildcard_for_single_variants",
4646
"-Wclippy::mem_forget",
47-
"-Wclippy::mismatched_target_os",
4847
"-Wclippy::missing_enforced_import_renames",
4948
"-Wclippy::mut_mut",
5049
"-Wclippy::mutex_integer",

β€ŽCHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## Unreleased
1111

12+
- Update to latests PerformanceAPI version (2.0, from 1.0 as of 14-SEP-2024) and add arm/arm64ec support
1213
- Add support for x86 32-bit ([#19](https://github.com/EmbarkStudios/superluminal-perf-rs/pull/19))
1314

1415
## 0.3.0 - 2023-06-15

β€Žsys/build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ fn runtime() -> &'static str {
1212
}
1313

1414
fn arch() -> &'static str {
15-
if env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("x86") {
16-
"x86"
17-
} else {
18-
"x64"
15+
match env::var("CARGO_CFG_TARGET_ARCH").as_deref() {
16+
Ok("x86") => "x86",
17+
Ok("x86_64") => "x64",
18+
Ok("aarch64") => "arm64",
19+
Ok("arm64ec") => "arm64ec",
20+
Ok(_) | Err(_) => panic!("Unsupported architecture!"),
1921
}
2022
}
2123

1.32 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-868 Bytes
Binary file not shown.
-880 Bytes
Binary file not shown.
1.83 KB
Binary file not shown.
1.78 KB
Binary file not shown.

0 commit comments

Comments
Β (0)