diff options
| author | Jesse Meyer <jesse.r.meyer@me.com> | 2026-02-01 09:04:53 -0500 |
|---|---|---|
| committer | Jesse Meyer <jesse.r.meyer@me.com> | 2026-02-03 20:16:20 -0500 |
| commit | 43ad4a1d9f18a89822e1b9f554adef1a228136db (patch) | |
| tree | ca7a569d1e5adc6fa3f1d7eb6c1a5fe36b175715 /src/llvm_backend_proc.cpp | |
| parent | f7901cffc9f4983259586241d5b336cdb6377b9c (diff) | |
Add ThinLTO support via -lto:thin and -lto:thin-files flags
- Add -lto:thin and -lto:thin-files CLI flags with validation
- Emit LLVM bitcode (.bc) instead of object files when LTO is enabled
- Pass -flto=thin and -flto-jobs to clang/lld linkers
- Guard linkage corrections to skip declarations without definitions
(required for LTO where declarations appear across modules)
- Allow module-per-file with LTO even at higher optimization levels
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/llvm_backend_proc.cpp')
0 files changed, 0 insertions, 0 deletions