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

Implementing build for intel based macOS #68

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

3c7
Copy link
Contributor

@3c7 3c7 commented Jan 3, 2024

As a side effect of #67 and affecting #14 partly, this pull request includes a few changes allowing to build yari on macOS x64. An example run can be seen here: https://github.com/3c7/yari/actions/runs/7396353584.

Somehow bindgen is able to derive Debug for YR_SCAN_CONTEXT itself already, so the implementation in yari-sys/src/bindings.rs was limited to linux and windows systems. Additionally, link_linux() was renamed to link_unix() and limited to both, linux and macos.

In order to be able to use the bundled bindings, another set of bindings for macos was provided.

@MatejKastak MatejKastak self-requested a review January 4, 2024 07:40
@MatejKastak MatejKastak self-assigned this Jan 4, 2024
Copy link
Member

@MatejKastak MatejKastak left a comment

Choose a reason for hiding this comment

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

Thank you very much for the changes. There are two small things to fix after that we can merge.

yari-sys/build.rs Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
@3c7
Copy link
Contributor Author

3c7 commented Jan 4, 2024

Implemented the changes and the workflow runs now. :)

@MatejKastak MatejKastak self-requested a review January 4, 2024 18:22
Copy link
Member

@MatejKastak MatejKastak left a comment

Choose a reason for hiding this comment

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

Thank you very much. LGTM 👍

@MatejKastak MatejKastak merged commit 54cadf6 into avast:master Jan 4, 2024
2 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants