We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c6844 commit 9b664f3Copy full SHA for 9b664f3
src/dist/dist.rs
@@ -346,7 +346,13 @@ impl TargetTriple {
346
(b"Linux", b"arm") => Some("arm-unknown-linux-gnueabi"),
347
(b"Linux", b"armv7l") => Some("armv7-unknown-linux-gnueabihf"),
348
(b"Linux", b"armv8l") => Some("armv7-unknown-linux-gnueabihf"),
349
- (b"Linux", b"aarch64") => Some(TRIPLE_AARCH64_UNKNOWN_LINUX),
+ (b"Linux", b"aarch64") => {
350
+ if cfg!(target_pointer_width = "32") {
351
+ Some("armv7-unknown-linux-gnueabihf")
352
+ } else {
353
+ Some(TRIPLE_AARCH64_UNKNOWN_LINUX)
354
+ }
355
356
(b"Darwin", b"x86_64") => Some("x86_64-apple-darwin"),
357
(b"Darwin", b"i686") => Some("i686-apple-darwin"),
358
(b"FreeBSD", b"x86_64") => Some("x86_64-unknown-freebsd"),
0 commit comments