[Lldb-commits] [lldb] [lldb] add cross platform test commands in Makefile.rules (PR #180224)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 9 05:56:53 PST 2026
================
@@ -37,6 +37,29 @@
# Uncomment line below for debugging shell commands
# SHELL = /bin/sh -x
+# Cross platform shell commands
+ifeq "$(OS)" "Windows_NT"
+ MKDIR_P = md $(subst /,\,$(1)) > nul 2>&1 || (exit 0)
+ CP = copy $(subst /,\,$(1)) $(subst /,\,$(2))
+ CP_R = xcopy $(subst /,\,$(1)) $(subst /,\,$(2)) /s /e /y
+ RM = del $(subst /,\,$(1)) > nul 2>&1 || (exit 0)
+ RM_F = del /f /q $(subst /,\,$(1))
+ RM_RF = rd /s /q $(subst /,\,$(1))
+ LN_SF = mklink /D "$(subst /,\,$(2))" "$(subst /,\,$(1))"
+ ECHO = echo $(1)
+ ECHO_TO_FILE = echo $(1) > $(subst /,\,$(2))
----------------
charles-zablit wrote:
Windows accepts both, this will not be a problem.
https://github.com/llvm/llvm-project/pull/180224
More information about the lldb-commits
mailing list