================
@@ -1248,6 +1296,11 @@ void DarwinClang::addClangWarningOptions(ArgStringList 
&CC1Args) const {
   CC1Args.push_back("-Werror=undef-prefix");
 
   // For modern targets, promote certain warnings to errors.
+  // Lazily initialize the target if needed (e.g. when Darwin is used as
+  // a host toolchain for device offloading).
+  ensureTargetInitialized();
----------------
jhuber6 wrote:

I'm not overly familiar with Darwin, but why does the target need to be 
initialized and why does offloading change it?

https://github.com/llvm/llvm-project/pull/183991
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to