Skip to content

Update libc version to 0.2.140 to support s390x #11

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

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

uweigand
Copy link

Adresses rust-lang/rust#109774.

I've simply chosen the current latest libc version - let me know if you prefer anything else.

@@ -12,4 +12,4 @@ repository = "https://github.com/swgillespie/gccjit.rs"
master = []

[dependencies]
libc = "0.1.6"
libc = "0.2.140"
Copy link

Choose a reason for hiding this comment

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

I'm not too familiar with semver, but I believe it would be more flexible to do the following:

Suggested change
libc = "0.2.140"
libc = "0.2"

and use the version with s390x support in the project using this library, by having version 0.2.140 in the Cargo.lock of rustc_codegen_gcc, for instance.

Copy link
Author

Choose a reason for hiding this comment

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

This works for me as well.

Copy link
Author

Choose a reason for hiding this comment

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

It doesn't actually have to be 0.2.140 specifically, s390x has been supported since 2016 or so, but not yet quite in 2015.

@antoyo antoyo merged commit fe242b7 into rust-lang:master Mar 30, 2023
@antoyo
Copy link

antoyo commented Mar 30, 2023

Thanks!

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