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

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 05:54:57 PST 2026


================
@@ -334,7 +334,7 @@ static int run(int argc, char **argv) {
     Conf.TimeTraceGranularity = TimeTraceGranularity;
   }
   Conf.CPU = codegen::getMCPU();
-  Conf.Options = codegen::InitTargetOptionsFromCodeGenFlags(Triple());
+  Conf.ModifyTargetOptions = [](llvm::TargetOptions &TO) {};
----------------
arichardson wrote:

Isn't this already the default?
```suggestion
```

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


More information about the llvm-commits mailing list