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

clang-tidy-19_macosx-amd64 missing from latest Release assets #55

Open
stellar-aria opened this issue Jan 10, 2025 · 2 comments
Open

clang-tidy-19_macosx-amd64 missing from latest Release assets #55

stellar-aria opened this issue Jan 10, 2025 · 2 comments

Comments

@stellar-aria
Copy link

stellar-aria commented Jan 10, 2025

There's a SHA512 checksum for it, but no binary

@echoix
Copy link

echoix commented Jan 10, 2025

See #52, where too big artifacts needed to be removed, otherwise the release for all others would be blocked.

If you have experience or knowledge on investigating building static binaries on macOS, that might be linking other libraries, you could help us out here to manage having binaries under 2GB.

@stellar-aria
Copy link
Author

stellar-aria commented Jan 10, 2025

So there's a couple things left on the table for further size reduction:

  • you can add -ffunction-sections and -fdata-sections to your compile flags (CMAKE_CXX_FLAGS/CMAKE_C_FLAGS) and --gc-sections to your linker flags (CMAKE_EXE_LINKER_FLAGS) to remove unused code sections. This might get you far enough on its own.
  • If it's still too big, you can set the MinSizeRel optimization level to -Oz instead of -Os (which is the default) which will involve setting CMAKE_CXX_FLAGS_MINSIZEREL and CMAKE_C_FLAGS_MINSIZEREL to -Oz -DNDEBUG and CMAKE_EXE_LINKER_FLAGS to -Oz

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

No branches or pull requests

2 participants