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

Re-add compiler and linker flags #99

Merged
merged 3 commits into from
Nov 3, 2023
Merged

Re-add compiler and linker flags #99

merged 3 commits into from
Nov 3, 2023

Conversation

marktsuchida
Copy link
Member

Some compiler flags got dropped during the switch to cibuildwheel, so re-add them:

  • On Linux (CI only, not in default), remove debug information from the binary (this should restore the ~1 MiB wheels instead of the ~11 MiB we currently get)
  • On macOS and Linux, set the default symbol visibility to hidden
  • On macOS and Linux, suppress the noisy warnings from MMCore (exception specifiers) and SWIG (unused variables)
  • Also reposition where CFLAGS is inserted into the command line so that the default flags can be overridden

None of these are necessary for correct functioning, so the binaries built without them are okay.

So that things can be overridden.
These got lost during the move to cibuildwheel. They used to be applied
differently to macOS and Linux, but a common default works for both.
@marktsuchida marktsuchida merged commit 3527d0f into main Nov 3, 2023
7 checks passed
@marktsuchida marktsuchida deleted the compiler-flags branch November 3, 2023 21:47
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.

1 participant