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

compile streamvbyte as C, not C++ #634

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

cldellow
Copy link
Contributor

@cldellow cldellow commented Jan 6, 2024

(This fixes the ARM Mac build complaints about streamvbyte, one of the things reported at #536.)

In #590, I compiled these as C++ files.

This was wrong, as they're meant to be compiled as C files. Depending on your compiler, you would hit errors to do with restrict or __restrict__ references.

This reverts the streamvbyte code to be a more vanilla copy of upstream, and updates the Makefile and CMakeLists.txt files to build them as C.

I've tested that this builds on ARM Ubuntu 22 with gcc, and @FunMiles has verified it builds on ARM Mac.

In systemed#590, I compiled these as C++ files.

This was wrong, as they're meant to be compiled as C files. Depending on
your compiler, you would hit errors to do with `restrict` or
`__restrict__` references.

This reverts the streamvbyte code to be a more vanilla copy of upstream,
and updates the `Makefile` and `CMakeLists.txt` files to build them as C.
@systemed systemed merged commit 7405050 into systemed:master Jan 6, 2024
5 checks passed
@systemed
Copy link
Owner

systemed commented Jan 6, 2024

Excellent - thank you! (Fine on Intel Mac too, unsurprisingly.)

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