Skip to content

feat(build): add rust-lld linker for faster builds (RFC 0032 Phase 1)#602

Merged
loonghao merged 1 commit intomainfrom
rfc-0032
Feb 17, 2026
Merged

feat(build): add rust-lld linker for faster builds (RFC 0032 Phase 1)#602
loonghao merged 1 commit intomainfrom
rfc-0032

Conversation

@loonghao
Copy link
Owner

Summary

This PR implements Phase 1 of RFC 0032 (Build Time Optimization).

Changes

  • ✅ Add rust-lld linker configuration for all platforms:
    • Windows MSVC
    • Linux (gnu and musl)
    • macOS
  • ✅ Update RFC 0032 documentation to mark Phase 1 as completed

Expected Benefits

  • ~10-13s faster linking on Windows MSVC
  • Improved link times on Linux and macOS

Technical Details

Rust 1.93+ includes rust-lld by default, which is significantly faster than the default linker on Windows (link.exe). The configuration is added to .cargo/config.toml.

Testing

  • ✅ Verified vx-core compiles successfully with lld linker
  • ✅ All pre-commit hooks passed (typos, fmt, clippy, etc.)

Related

  • RFC: docs/rfcs/0032-build-time-optimization.md
  • Target: v0.8.0

Future Work (Phase 2+)

Phase 2 (vx-runtime split) will be implemented in a separate PR due to its complexity.

@loonghao loonghao merged commit 60d7a17 into main Feb 17, 2026
8 of 12 checks passed
@loonghao loonghao deleted the rfc-0032 branch February 17, 2026 06:02
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

Comments