Skip to content

Add support for arm64 to llvm-project #29

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 3 commits into from
Jun 9, 2022

Conversation

nathanchance
Copy link
Member

Now that we have self-hosted runners, we can actually build on an arm64 machine. This removes all the "x86-isms" in the Docker and CMake files and wires up GitHub Actions to build on both arm64 and x86_64.

A recent successful run: https://github.com/nathanchance/containers/actions/runs/2464883356

I have verified that epoch one through three works as expected locally.

Remove all references to x86_64 directly by moving
LLVM_DEFAULT_TARGET_TRIPLE into the CMake invocation so that we can call
'uname -m'. Do the same thing for symlinking the libraries.

Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Copy link
Member

@nickdesaulniers nickdesaulniers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Happy to see us wiring up additional arch support early, and that it wasn't too painful! Thanks for the patches! 🦾 🤖

@nathanchance nathanchance merged commit 42b8991 into ClangBuiltLinux:main Jun 9, 2022
@nathanchance nathanchance deleted the llvm-project-arm64 branch June 9, 2022 18:06
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