[clang] [clang-format] Fix `check-format-depends` CMake for Windows (PR #209205)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 31 23:48:14 PDT 2026
================
@@ -43,12 +43,15 @@ file(GLOB_RECURSE files
set(check_format_depends clang-format)
find_program(DIFF_EXE diff)
-if(DIFF_EXE)
+find_program(TOUCH_EXE touch)
+if(DIFF_EXE AND TOUCH_EXE)
+ file(TO_NATIVE_PATH "${DIFF_EXE}" DIFF_EXE_NATIVE_PATH)
+ file(TO_NATIVE_PATH "${TOUCH_EXE}" TOUCH_EXE_NATIVE_PATH)
----------------
owenca wrote:
Why do you need `TO_NATIVE_PATH` if `diff` is already found?
https://github.com/llvm/llvm-project/pull/209205
More information about the cfe-commits
mailing list