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

Add macosx-arm64 preset for lz4 #1243

Merged
merged 4 commits into from
Oct 11, 2022

Conversation

gab1one
Copy link
Contributor

@gab1one gab1one commented Oct 10, 2022

This PR enables the build of the macosx-arm64 preset for lz4.

Build is working, please let me know if anything else is missing.

(I created the PR with the wrong account earlier, that is why I closed that one and opened this one)

@saudet
Copy link
Member

saudet commented Oct 10, 2022

For consistency, everything "macosx-arm64" should appear before "macosx-x86_64", and we'll need to cross compile in cppbuild.sh, but the rest looks fine.

@gab1one
Copy link
Contributor Author

gab1one commented Oct 10, 2022

  • I added a commit to fix the ordering.
  • Looking into setting the cross-compile settings

@saudet
Copy link
Member

saudet commented Oct 10, 2022

I don't think the target flag is going to work. Anyway, it's easier to use just "-arch arm64" and that's been working for all other builds, for example: https://github.com/bytedeco/javacpp-presets/blob/master/libffi/cppbuild.sh#L90

@gab1one gab1one force-pushed the add-mac-arm64-support-to-lz4 branch from eea32bc to c156a4f Compare October 10, 2022 13:30
@gab1one
Copy link
Contributor Author

gab1one commented Oct 10, 2022

Thanks for the tip, that seems to be working when running clang on mac.

@gab1one
Copy link
Contributor Author

gab1one commented Oct 11, 2022

Is there anything else missing for this to get merged?

@saudet saudet merged commit 3659078 into bytedeco:master Oct 11, 2022
@gab1one gab1one deleted the add-mac-arm64-support-to-lz4 branch October 11, 2022 13:58
@gab1one
Copy link
Contributor Author

gab1one commented Oct 11, 2022

Thank you very much for the support and merging 👍🏾

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.

None yet

2 participants