File tree 1 file changed +25
-1
lines changed
lldb/packages/Python/lldbsuite/test/make 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,31 @@ LLDB_BASE_DIR := $(THIS_FILE_DIR)/../../../../../
46
46
# according to variable values).
47
47
.DEFAULT_GOAL := all
48
48
49
+ #----------------------------------------------------------------------
50
+ # If OS is not defined, use 'uname -s' to determine the OS name.
51
+ #
52
+ # GNUWin32 uname gives "windows32" or "server version windows32" while
53
+ # some versions of MSYS uname return "MSYS_NT*", but most environments
54
+ # standardize on "Windows_NT", so we'll make it consistent here.
55
+ # When running tests from Visual Studio, the environment variable isn't
56
+ # inherited all the way down to the process spawned for make.
57
+ #----------------------------------------------------------------------
58
+ ifeq "$(HOST_OS)" ""
59
+ HOST_OS := $(shell uname -s)
60
+ endif
61
+
62
+ ifneq (,$(findstring windows32,$(HOST_OS)))
63
+ HOST_OS := Windows_NT
64
+ endif
65
+
66
+ ifneq (,$(findstring MSYS_NT,$(HOST_OS)))
67
+ HOST_OS := Windows_NT
68
+ endif
69
+
70
+ ifeq "$(OS)" ""
71
+ OS := $(HOST_OS)
72
+ endif
73
+
49
74
#----------------------------------------------------------------------
50
75
# If OS is Windows, force SHELL to be cmd
51
76
#
@@ -596,7 +621,6 @@ ifeq "$(MAKE_DWP)" "YES"
596
621
endif
597
622
endif
598
623
599
-
600
624
#----------------------------------------------------------------------
601
625
# Make the dylib
602
626
#----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments