[libcxx-commits] [libcxx] [libc++] Don't commit libcxx.imp (PR #89391)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 19 09:53:51 PDT 2024


================
@@ -1036,6 +1035,15 @@ foreach(f ${files})
   list(APPEND _all_includes "${dst}")
 endforeach()
 
+# Generate the IWYU mapping. This depends on all header files but it's also considered as an
+# "include" for dependency tracking.
+add_custom_command(OUTPUT "${LIBCXX_GENERATED_INCLUDE_DIR}/libcxx.imp"
+  COMMAND "${Python3_EXECUTABLE}" "${LIBCXX_SOURCE_DIR}/utils/generate_iwyu_mapping.py" "-o" "${LIBCXX_GENERATED_INCLUDE_DIR}/libcxx.imp"
+  DEPENDS ${_all_includes}
+  COMMENT "Generate the mapping file for include-what-you-use"
+)
+list(APPEND _all_includes "${LIBCXX_GENERATED_INCLUDE_DIR}/libcxx.imp")
----------------
mordante wrote:

It looks like this breaks the CI.

https://github.com/llvm/llvm-project/pull/89391


More information about the libcxx-commits mailing list