[Lldb-commits] [lldb] [lldb][test] Fix TestUseSourceCache for readonly source trees (PR #113251)

Igor Kudrin via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 21 20:08:07 PDT 2024


================
@@ -6,3 +6,6 @@ include Makefile.rules
 # Copy file into the build folder to enable the test to modify it.
 main-copy.cpp: main.cpp
 	cp -f $< $@
+ifneq "$(OS)" "Windows_NT"  # chmod is not available on Windows
----------------
igorkudrin wrote:

If I understand correctly, we rely on some Unix-like tools on Windows anyway; otherwise, `cp` would not be available. Such toolsets, e.g., MSYS2, provide `chmod`, so you can drop the conditions.

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


More information about the lldb-commits mailing list