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

fix(openharmony): fix bindgen build error for openharmony #262

Merged
merged 3 commits into from
Jul 18, 2024

Conversation

richerfu
Copy link
Contributor

No description provided.

args.push("-D_LIBCPP_HAS_MUSL_LIBC".to_owned());
// for musl or openharmony
// https://github.com/ziglang/zig/pull/16098
args.push("-D_LARGEFILE64_SOURCE".to_owned());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm uncertain whether this is applicable to all MUSL outputs, but it's certainly required for OpenHarmony. Any thoughts on this?

Copy link
Member

@messense messense Jul 18, 2024

Choose a reason for hiding this comment

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

Ideally we should detect musl version (can be based on zig version I think) and only define this for musl 1.2.4+, but it shouldn't hurt to define this unconditionally?

@messense messense merged commit 1a173d7 into rust-cross:main Jul 18, 2024
33 of 39 checks passed
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.

2 participants