[clang] [llvm] [HIP][MacOS] Mach-O support and Darwin toolchain fixes (PR #183991)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 1 08:38:29 PDT 2026
================
@@ -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
More information about the llvm-commits
mailing list