[clang] [HIP] Claim `--offload-compress` for `-M` (PR #133456)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 10:16:53 PDT 2025
================
@@ -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)) {
----------------
jhuber6 wrote:
Maybe we should only do this when `-M` is specified?
https://github.com/llvm/llvm-project/pull/133456
More information about the cfe-commits
mailing list