Skip to content

Update PerformanceAPI version and add supprot for ARM binaries #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ rustflags = [
"-Wclippy::match_wild_err_arm",
"-Wclippy::match_wildcard_for_single_variants",
"-Wclippy::mem_forget",
"-Wclippy::mismatched_target_os",
"-Wclippy::missing_enforced_import_renames",
"-Wclippy::mut_mut",
"-Wclippy::mutex_integer",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

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

## 0.3.0 - 2023-06-15
Expand Down
10 changes: 6 additions & 4 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ fn runtime() -> &'static str {
}

fn arch() -> &'static str {
if env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("x86") {
"x86"
} else {
"x64"
match env::var("CARGO_CFG_TARGET_ARCH").as_deref() {
Ok("x86") => "x86",
Ok("x86_64") => "x64",
Ok("aarch64") => "arm64",
Ok("arm64ec") => "arm64ec",
Ok(_) | Err(_) => panic!("Unsupported architecture!"),
}
}

Expand Down
Binary file added sys/external/lib/arm64/PerformanceAPI_MD.lib
Binary file not shown.
Binary file added sys/external/lib/arm64/PerformanceAPI_MT.lib
Binary file not shown.
Binary file added sys/external/lib/arm64ec/PerformanceAPI_MD.lib
Binary file not shown.
Binary file added sys/external/lib/arm64ec/PerformanceAPI_MT.lib
Binary file not shown.
Binary file modified sys/external/lib/x64/PerformanceAPI_MD.lib
Binary file not shown.
Binary file modified sys/external/lib/x64/PerformanceAPI_MT.lib
Binary file not shown.
Binary file modified sys/external/lib/x86/PerformanceAPI_MD.lib
Binary file not shown.
Binary file modified sys/external/lib/x86/PerformanceAPI_MT.lib
Binary file not shown.
Loading