Makefile.rules: Make HOST_OS/OS simply expanded variable to avoid excess uname -s...
authorFangrui Song <i@maskray.me>
Mon, 18 Jan 2021 01:19:29 +0000 (17:19 -0800)
committerFangrui Song <i@maskray.me>
Mon, 18 Jan 2021 01:19:29 +0000 (17:19 -0800)
This decreases the number of runs from 18 to 1.

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

index a7efa15..d715f1c 100644 (file)
@@ -56,12 +56,12 @@ LLDB_BASE_DIR := $(THIS_FILE_DIR)/../../../../../
 # When running tests from Visual Studio, the environment variable isn't
 # inherited all the way down to the process spawned for make.
 #----------------------------------------------------------------------
-HOST_OS = $(shell uname -s)
+HOST_OS := $(shell uname -s)
 ifneq (,$(findstring windows32,$(HOST_OS)))
-       HOST_OS = Windows_NT
+       HOST_OS := Windows_NT
 endif
 ifeq "$(OS)" ""
-       OS = $(HOST_OS)
+       OS := $(HOST_OS)
 endif
 
 #----------------------------------------------------------------------