Skip to content
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

cpufeatures: don't link std when linking libc #1142

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

tarcieri
Copy link
Member

On AArch64, we link the libc crate to provide access to system call wrappers which can query available CPU features from the kernel, since those calls are protected on that CPU architecture.

We don't need std though, and it seems we're inadvertently linking it on Linux, Android, and macOS.

On AArch64, we link the `libc` crate to provide access to system call
wrappers which can query available CPU features from the kernel, since
those calls are protected on that CPU architecture.

We don't need `std` though, and it seems we're inadvertently linking it
on Linux, Android, and macOS.
@tarcieri tarcieri merged commit ca3d1c2 into master Jan 24, 2025
11 checks passed
@tarcieri tarcieri deleted the cpufeatures/dont-link-std-when-linking-libc branch January 24, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants