Skip to content

Fix: select generic ARM C bindings when target triple is armv6, armv7l, ...#4167

Merged
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:fix-arm-target-triple
Mar 23, 2017
Merged

Fix: select generic ARM C bindings when target triple is armv6, armv7l, ...#4167
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:fix-arm-target-triple

Conversation

@ysbaddaden
Copy link
Collaborator

We don't have specific C bindings for the armv6, armv7l and other specific architectures (e.g. the armhf Debian packages use a armv7l-unknown-linux-gnueabihf triple). We only have bindings for the generic arm target, and this fix tells Crystal to always use these.

Reference: #3424 (comment)

Fixes the target triple used by Crystal to select the LibC bindings
when the triple specifies a specific ARM architecture, e.g. `armv6`,
`armv7l` or `armv8.1-a`.

refs crystal-lang#3424 (comment)
@ysbaddaden ysbaddaden force-pushed the fix-arm-target-triple branch from 0a62d16 to f1b5b4a Compare March 23, 2017 09:22
@ysbaddaden
Copy link
Collaborator Author

Raspbian (testing) provides LLVM 3.9, so I could reproduce the issue, which should now be fixed for both ARM and AArch64.

@ysbaddaden
Copy link
Collaborator Author

Merging. The macOS Sierra failure on CI is unrelated.

@ysbaddaden ysbaddaden merged commit 874eb8b into crystal-lang:master Mar 23, 2017
@ysbaddaden ysbaddaden deleted the fix-arm-target-triple branch March 23, 2017 09:54
@bcardiff bcardiff added this to the 0.22.0 milestone May 9, 2017
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