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

[WIP] make darwin work for MacOS M1 #268

Open
1 of 8 tasks
miry opened this issue Nov 12, 2023 · 2 comments
Open
1 of 8 tasks

[WIP] make darwin work for MacOS M1 #268

miry opened this issue Nov 12, 2023 · 2 comments

Comments

@miry
Copy link
Contributor

miry commented Nov 12, 2023

I am contributing to this repo to be able build and test crystal on Darwin arm64.
There are some work required to be done. I am going to split my changes in small PRs:

Extra:

  • Remove record from .gitignore #269
  • Create a Makefile in root folder to run make darwin
  • LLVM supports name arm64-apple-darwin, the aarch64-apple-darwin could be replaced. (llvm-config --host-target #=> arm64-apple-darwin23.0.0)

Testing

@miry miry changed the title [WIP] Make it work for MacOS M1 [WIP] make darwin work for MacOS M1 Nov 12, 2023
@miry
Copy link
Contributor Author

miry commented Nov 12, 2023

I made my setup to build at least something after few days of working.
My dirty working branch: master...miry:distribution-scripts:125-support-arm

Next step is to split it to small prs.

@miry
Copy link
Contributor Author

miry commented Nov 13, 2023

From chat:

distribution-scripts is basically just outsourced packaging part of https://github.com/crystal-lang/crystal. It's used only from the main repo's CI. So in order to test changes, we push a special branch on crystal which updates the reference of distribution-scripts to the branch with your changes.
sed -i -E "/distribution-scripts-version:/{n;n;n;s/default: \".*\"/default: \"$yourCommitSHA\"/}" .circleci/config.yml 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants