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

Use oldabi libroot file when compiling with clang < 12.0.0 #796

Merged
merged 2 commits into from May 8, 2024

Conversation

opa334
Copy link
Contributor

@opa334 opa334 commented Mar 24, 2024

What does this implement/fix? Explain your changes.

RIght now compilation for oldabi fails due to libroot only having a new ABI file.
Initially I tried using a patched lipo to combine both old ABI and new ABI slices into the same .a, this however does not work.
Now there are two .a files, one with an old ABI arm64e slice and one with a new one and we use the correct one based on the clang version being used when compiling.

Depends on theos/lib#23 being merged first.

Does this close any currently open issues?

No

Where has this been tested?

Operating System: macOS

Target Platform: iOS

Copy link
Contributor

@MrGcGamer MrGcGamer left a comment

Choose a reason for hiding this comment

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

Tested and looks good to me.

@joshuaseltzer
Copy link

joshuaseltzer commented May 3, 2024

Can we get this merged? Without this PR, compiling older tweaks using the Xcode 11 toolchain (for arm64e support) is broken.

@leptos-null @uroboro @PoomSmart

Copy link
Member

@L1ghtmann L1ghtmann left a comment

Choose a reason for hiding this comment

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

Though this is not likely to be the final implementation of libroot, approving as a means of fixing oldabi builds.

@uroboro uroboro merged commit 63191fc into theos:master May 8, 2024
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

6 participants