Closed Bug 1475650 Opened 3 years ago Closed 3 years ago
Use llvm-lib as AR when linking with lld-link
Building with ThinLTO requires that we use llvm-lib.exe as $(AR) because Microsoft's lib.exe doesn't understand the file format. Without LTO, it's entirely possible to mix and match LLVM and MS's programs, but for simplicity let's just say we'll always use lld-link and llvm-lib together. As a bonus, we can use -llvmlibthin to generate thin libraries, which store pointers to the original obj files rather than copy the data. As long as we don't need to ship or share the libs (which we don't) this can save us some work.
Assignee: nobody → dmajor
Attachment #8992010 - Flags: review?(core-build-config-reviews)
Attachment #8992010 - Flags: review?(core-build-config-reviews) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/79c65f8a1a07 Use llvm-lib when linking with lld-link. r=froydnj
You need to log in before you can comment on or make changes to this bug.