Skip to content

Conversation

@webdevred
Copy link
Owner

@webdevred webdevred commented Oct 25, 2025

  • Add du -h output in installer script to show built executable sizes
  • Move tests: False into package * for consistent Cabal config
  • Restrict -Werror to jbeam-edit package in CI to avoid dependency build breaks
  • Enable executable stripping and add size optimizations in release build:
    • -split-sections, -optc-Os, -optl-static, -fignore-asserts
  • Add -Wunused-packages warnings to improve dependency hygiene
  • Scope megaparsec dependency to the library only (was global)
    -> reduces unnecessary linking and rebuilds, slightly smaller binaries

@webdevred webdevred force-pushed the split-sections branch 2 times, most recently from 93cc2c6 to 54f0214 Compare October 25, 2025 22:30
@webdevred webdevred force-pushed the master branch 8 times, most recently from 3c20dcc to 641c6c1 Compare November 3, 2025 14:05
- Move `tests: False` under `package *` in cabal.project for clearer scope
- Remove global `-split-sections` (moved to release config)
- Scope `-Werror` to `jbeam-edit` in CI configuration
- Add release flags for smaller static binaries:
  - executable-stripping: True
  - -split-sections, -optc-Os, -optl-static
- Enable `-Wunused-packages` warning in library to detect unused deps
@webdevred webdevred changed the title Split sections Optimize release build, tighten dependencies, and improve CI logging Nov 9, 2025
@webdevred webdevred merged commit 2a53856 into master Nov 9, 2025
14 checks passed
@webdevred webdevred deleted the split-sections branch November 9, 2025 17:45
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