[Lldb-commits] [lldb] [LLDB][test] Update Makefile.rules to support Windows host+Linux target (PR #99266)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 17 05:14:55 PDT 2024
================
@@ -80,9 +78,21 @@ endif
# Also reset BUILDDIR value because "pwd" returns cygwin or msys path
# which needs to be converted to windows path.
#----------------------------------------------------------------------
-ifeq "$(OS)" "Windows_NT"
- SHELL = $(WINDIR)\system32\cmd.exe
+path_wrapper = $(1)
+ifeq "$(HOST_OS)" "Windows_NT"
+ # Windows 10 and later has the lower-case 'windir' env variable.
+ SHELL := $(or $(windir),$(WINDIR),C:\WINDOWS)\system32\cmd.exe
BUILDDIR := $(shell echo %cd%)
+
+ ifneq (,$(filter $(OS), Linux Android))
----------------
labath wrote:
Why is this based on the target OS? I would expect that something like this would be keyed off of host os being windows, not *target* os *not* being linux.
https://github.com/llvm/llvm-project/pull/99266
More information about the lldb-commits
mailing list