summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-06 18:02:16 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-07 14:34:49 (GMT)
commitb59f7600c409e08fb872705d795d37f014e02453 (patch)
tree4350ec1b853d203fcd4ef1385ee326df1208323a
parent60ebe5f3da67151f79e068f193ff309f7a358d41 (diff)
downloadCMake-b59f7600c409e08fb872705d795d37f014e02453.zip
CMake-b59f7600c409e08fb872705d795d37f014e02453.tar.gz
CMake-b59f7600c409e08fb872705d795d37f014e02453.tar.bz2
HIP: Enable CMAKE_EXPORT_COMPILE_COMMANDS for HIP
Fixes: #22986
-rw-r--r--Source/cmMakefileTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 8edadd3..f5f3727 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -888,7 +888,7 @@ void cmMakefileTargetGenerator::WriteObjectRuleFiles(
bool lang_has_preprocessor =
((lang == "C") || (lang == "CXX") || (lang == "OBJC") ||
(lang == "OBJCXX") || (lang == "Fortran") || (lang == "CUDA") ||
- lang == "ISPC" || lang == "ASM");
+ lang == "ISPC" || lang == "HIP" || lang == "ASM");
bool const lang_has_assembly = lang_has_preprocessor;
bool const lang_can_export_cmds = lang_has_preprocessor;