[Lldb-commits] [lldb] [lldb] Do not use mkdir -p in makefile on Windows (PR #187244)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 18 04:27:57 PDT 2026


https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/187244

`Make` uses systems's `mkdir` on Windows even if Git's mkdir.exe is present in PATH. Windows's mkdir does not support the parameter `-p` and creates the directory `-p` instead. Few other tests also use `mkdir -p` but they are linux, objc or macosx related.

>From 311c44c5e22bd26b5d47b554a5517d7a1c6f59ba Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: Wed, 18 Mar 2026 15:20:58 +0400
Subject: [PATCH] [lldb][Windows] Do not use mkdir -p in makefile on Windows

Make uses systems's mkdir on Windows even if Git's mkdir.exe is present in PATH. Windows's mkdir does not support the parameter -p and creates the directory -p instead. Few other tests also use mkdir -p but they are linux, objc or macosx related.
---
 lldb/test/API/lang/cpp/incomplete-types/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/test/API/lang/cpp/incomplete-types/Makefile b/lldb/test/API/lang/cpp/incomplete-types/Makefile
index 0cf3f6a31caa2..9fcf4c6114254 100644
--- a/lldb/test/API/lang/cpp/incomplete-types/Makefile
+++ b/lldb/test/API/lang/cpp/incomplete-types/Makefile
@@ -15,7 +15,7 @@ main.o: NO_LIMIT_DEBUG_INFO_FLAGS = ""
 main.o: CFLAGS_EXTRAS = -flimit-debug-info
 
 limit: a.o main.o
-	mkdir -p build_limit
+	mkdir build_limit
 	"$(MAKE)" -C $(BUILDDIR)/build_limit -f $(MAKEFILE_RULES) \
 		EXE=../limit CXX_SOURCES="length.cpp ../a.o ../main.o" \
 		CFLAGS_EXTRAS=-flimit-debug-info NO_LIMIT_DEBUG_INFO_FLAGS=""



More information about the lldb-commits mailing list