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 zigcc-based cmake toolchains and presets for cross-compilation #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cnt0
Copy link

@cnt0 cnt0 commented Jun 12, 2023

saw in #93 that people are interested in this topic so I decided to add it.

It can be used like this:

$ cmake --workflow --preset x86_64-windows-gnu

zig should be in $PATH. At least, cross-compiled libfzf.dll passes make ntest checks.

To compile unit tests, add -DENABLE_TESTING cmake option. In this case, it's assumed that examiner is cloned into examiner subdirectory. Also, you might want to check this PR: Conni2461/examiner#1

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.

1 participant