Optimized_Plugin is a metaprogram plugin for the Jai language that improves Windows executable builds by switching to the LLVM linker (lld-link) and enforcing static runtime linking.
It focuses on producing faster-to-build, more portable, and less dependency-heavy executables.
- Uses LLVM LLD linker (lld-link) instead of MSVC link.exe (you must have lld-link.exe in PATH)
- Forces static linking of Windows runtimes: (ucrt, vcruntime, msvcrt, msvcprt)
- Reduces dependency on external runtime DLLs
- Produces self-contained Windows .exe files
- Applies aggressive optimization flags during build
- Simplifies build invocation through Jai plugin syntax
First yout have to put Optimize.jai in modules
Enable the plugin during compilation:
jai main.jai +OptimizeOnly works on Windows!
Not Everyone NEEDS it.