-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Add new tier-3 target: armv7-unknown-linux-uclibceabihf #88952
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Co-authored-by: Jonah Petri <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| use crate::spec::{Target, TargetOptions}; | ||
Mark-Simulacrum marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| // This target is for uclibc Linux on ARMv7 without NEON or | ||
| // thumb-mode. See the thumbv7neon variant for enabling both. | ||
|
|
||
| pub fn target() -> Target { | ||
| let base = super::linux_uclibc_base::opts(); | ||
| Target { | ||
| llvm_target: "armv7-unknown-linux-gnueabihf".to_string(), | ||
nagisa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| pointer_width: 32, | ||
| data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(), | ||
| arch: "arm".to_string(), | ||
|
|
||
| options: TargetOptions { | ||
| // Info about features at https://wiki.debian.org/ArmHardFloatPort | ||
skrap marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(), | ||
| cpu: "generic".to_string(), | ||
| max_atomic_width: Some(64), | ||
| mcount: "_mcount".to_string(), | ||
| ..base | ||
| }, | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -419,7 +419,7 @@ impl Command { | |
| } | ||
|
|
||
| // Only glibc 2.24+ posix_spawn() supports returning ENOENT directly. | ||
| #[cfg(all(target_os = "linux", target_env = "gnu"))] | ||
| #[cfg(all(target_os = "linux", any(target_env = "gnu", target_env = "uclibc")))] | ||
|
||
| { | ||
| if let Some(version) = sys::os::glibc_version() { | ||
| if version < (2, 24) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.