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 CMAKE_TOOLCHAIN_FILE variable #134

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Use CMAKE_TOOLCHAIN_FILE variable #134

wants to merge 4 commits into from

Conversation

wjk
Copy link
Contributor

@wjk wjk commented Oct 13, 2023

Mot of this PR separates the tools directory out into a completely separate CMake run so I can use the CMAKE_TOOLCHAIN_FILE variable to fully and properly cross-compile PureDarwin. Previously, if I tried building PureDarwin on a non-macOS host, CMake would use Linux linker args that are incompatible with our ld64. This has been fixed.

If one were to build this project on Linux, it would fail
because CMake would send Linux ld flags to the Darwin ld,
which uses a completely different syntax. This required
breaking out the tools into a separate CMake invocation.

I have verified that the entire project builds from an
empty build folder following these changes.
Previously, it would build if one first built the tools-extproj
target manually first. This is no longer required.
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

1 participant