================ @@ -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)) ---------------- adrian-prantl wrote:
Let's hope nobody builds LLDB in a path that contains a forward-slash ;-) https://github.com/llvm/llvm-project/pull/180224 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
