[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 23:43:53 PST 2026


================
@@ -12,10 +12,6 @@
 #include "llvm/TargetParser/Triple.h"
 #include <optional>
 
-llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags() {
----------------
MaskRay wrote:

We should restore this function to avoid direct dependency on LLVMCodeGen from every lld port.

See https://github.com/MaskRay/llvm-project/tree/maskray-179509

https://github.com/llvm/llvm-project/pull/179509


More information about the cfe-commits mailing list