================
@@ -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 &) {};
----------------
ilovepi wrote:
Oh, I see. Yeah, that does make sense. I thought there was one place where the
callback was issued much later on a TargetOption that had already been
created/modified, but I'm not seeing it now. Let me try that, since it would
make it clear that this *needs* the triple.
https://github.com/llvm/llvm-project/pull/179509
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits