Skip to content

Conversation

@ken-matsui
Copy link
Member

No description provided.

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Dec 17, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 17, 2025

@llvm/pr-subscribers-clang

Author: Ken Matsui (ken-matsui)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/172725.diff

1 Files Affected:

  • (modified) clang/utils/hmaptool/CMakeLists.txt (+7-2)
diff --git a/clang/utils/hmaptool/CMakeLists.txt b/clang/utils/hmaptool/CMakeLists.txt
index 02b29e4fba2f1..2891c29263a57 100644
--- a/clang/utils/hmaptool/CMakeLists.txt
+++ b/clang/utils/hmaptool/CMakeLists.txt
@@ -1,8 +1,13 @@
-install(PROGRAMS hmaptool DESTINATION "${CLANG_TOOLS_INSTALL_DIR}" COMPONENT hmaptool)
+option(CLANG_INSTALL_HMAPTOOL "Install hmaptool" ON)
+
+if(CLANG_INSTALL_HMAPTOOL)
+  install(PROGRAMS hmaptool DESTINATION "${CLANG_TOOLS_INSTALL_DIR}" COMPONENT hmaptool)
+endif()
+
 add_custom_target(hmaptool ALL DEPENDS "hmaptool")
 set_target_properties(hmaptool PROPERTIES FOLDER "Clang/Utils")
 
-if(NOT LLVM_ENABLE_IDE)
+if(CLANG_INSTALL_HMAPTOOL AND NOT LLVM_ENABLE_IDE)
   add_llvm_install_targets("install-hmaptool"
                            DEPENDS hmaptool
                            COMPONENT hmaptool)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants