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

Update Clang.jl generator scripts #35

Merged
merged 4 commits into from
Sep 2, 2021
Merged

Conversation

melonedo
Copy link
Contributor

@melonedo melonedo commented Aug 25, 2021

Upgrade generator scripts because the old one will become end-of-support soon.
Tests are passed and most changes seem harmless. The changes are extracted at https://gist.github.com/melonedo/eefdbd1f4573c3a17ff2cddbeb1dce7f/revisions.

cc @Gnimuc

Passes tests, but at least `png_imagep` is incorrect.
See JuliaInterop/Clang.jl#326
Copy link
Member

@johnnychen94 johnnychen94 left a comment

Choose a reason for hiding this comment

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

@melonedo I just noticed that CI wasn't enabled for PRs, thus I updated our CI configurations in #37, can you run

git remote add upstream https://github.com/JuliaIO/PNGFiles.jl.git
git pull upstream master --rebase
git push origin master -f

to update the CI configuration so that we can test this PR?

Edit: Okay no need to do so, since the close&reopen trick works.

gen/libpng/generator.toml Outdated Show resolved Hide resolved
@johnnychen94
Copy link
Member

Let me see if close&reopen triggers our CI

@melonedo
Copy link
Contributor Author

Seems the tests failure are due to #22, that patch has been applied.

Copy link
Member

@johnnychen94 johnnychen94 left a comment

Choose a reason for hiding this comment

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

Seems the tests failure are due to #22, that patch has been applied.

Nice! @Gnimuc can you help double-check the configurations?

const PNG_BYTES_TO_CHECK = 8
const tm = Libc.TmStruct
const time_t = UInt
const jmp_buf = Nothing
Copy link

Choose a reason for hiding this comment

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

If jmp_buf is only used as an opaque pointer in the library, this is OK. Otherwise, it should be carefully defined for different platforms.

@johnnychen94 johnnychen94 merged commit bcc01c5 into JuliaIO:master Sep 2, 2021
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.

3 participants