================
@@ -1183,6 +1183,12 @@ void Clang::AddPreprocessingOptions(Compilation &C,
const JobAction &JA,
CmdArgs.push_back(Args.MakeArgString(P));
}
+ // Add HIP toolkit include paths after C++ stdlib but before system headers.
+ // This ensures the selected ROCm headers beat distro-installed HIP headers
+ // in /usr/include without breaking C++ #include_next chains.
+ if (JA.isOffloading(Action::OFK_HIP))
----------------
david-salinas wrote:
ok
https://github.com/llvm/llvm-project/pull/238058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits