[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)
Alexander Richardson via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 14 11:39:13 PST 2026
================
@@ -47,7 +47,9 @@ struct Config {
// Note: when adding fields here, consider whether they need to be added to
// computeLTOCacheKey in LTO.cpp.
std::string CPU;
- TargetOptions Options;
+ // Callback to modify the target options once they are instantiated.
+ std::function<void(TargetOptions &Options)> ModifyTargetOptions =
+ [](TargetOptions &) {};
----------------
arichardson wrote:
Looks good thanks!
https://github.com/llvm/llvm-project/pull/179509
More information about the cfe-commits
mailing list