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

Rework toolchain file and build libraries in MinSizeRel mode #75

Merged
merged 6 commits into from
Dec 11, 2024

Conversation

PatrickKa
Copy link
Contributor

Fixes #73
Fixes #74

- No longer add `-gdwarf-2 -g3` unconditionally
- Add `MinSizeRel` to the `CMAKE_CONFIGURATION_TYPES`
- Explicitly specify the default flags for all 4 configuration types
- Add `-ffunction-sections -fdata-sections`. Together with the already
  specified linker flag `--gc-sections` this helps reducing the binary
  size by allowing the linker to eliminate unused code.
I hope this fixes the failing CI workflow for building the Linux Docker
image.
Ubuntu 23.04 had its end of life on January 25, 2024, so almost 11
months ago. Maybe that's why the CI job for building the Docker image
fails.
Also raise the priority of all `update-alternative --install` calls to
99 to ensure that we will really use the our specified version.
@PatrickKa PatrickKa merged commit de278b8 into master Dec 11, 2024
1 check passed
@PatrickKa PatrickKa deleted the toolchain branch December 11, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant