3 ms·
For even more bang, rebuild LLVM with your custom allocator, profile guidance, and link-time optimization. If you're planning to invoke the compiler a million t
by jeffbee 5y ago
For even more bang, rebuild LLVM with your custom allocator, profile guidance, and link-time optimization. If you're planning to invoke the compiler a million times, you might as well get it peak optimized.
- pdimitar 5y agoI'd love to read a detailed walkthrough about this!
- vlovich123 5y agohttps://llvm.org/docs/BuildingADistribution.html https://llvm.org/docs/BuildingADistribution.html
- liuliu 5y agoYeah, building Swift is not straight-forward. There are several repos needs to be checked out and coordinated in lock-steps. I usually starts with "swift/release/xxx" branches in llvm / cmark / swift, and call this to find what I am missing: https://github.com/apple/swift/blob/main/utils/build-script https://github.com/apple/swift/blob/main/utils/build-script