================
@@ -1026,6 +1026,12 @@ void Clang::AddPreprocessingOptions(Compilation &C, 
const JobAction &JA,
       CmdArgs.push_back("-dependency-file");
       CmdArgs.push_back(DepFile);
     }
+    // Cmake generates dependency files using all compilation options specified
+    // by users. Claim those not used for dependency files.
+    if (JA.isOffloading(Action::OFK_HIP)) {
----------------
yxsamliu wrote:

We will only reach here when there is `-M` or alike. see line 1011.

https://github.com/llvm/llvm-project/pull/133456
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to