Skip to content

Commit 9cf2fc0

Browse files
committed
apply sugg
1 parent c2f6f5b commit 9cf2fc0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Makefile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,17 @@ target=$1
130130
os=$2
131131

132132
OS_LOWER-$(target)=$(shell echo $(os) | tr '[:upper:]' '[:lower:]')
133-
TRIPLE_OS-$(target)=$$(TRIPLE_OS-$(os))
134133

135134
# $(target) can be broken up into is composed of $(SDK).$(ARCH)
136135
SDK-$(target)=$$(basename $(target))
137136
ARCH-$(target)=$$(subst .,,$$(suffix $(target)))
138137

139138
ifneq ($(os),macOS)
140139
ifeq ($$(findstring simulator,$$(SDK-$(target))),)
141-
TARGET_TRIPLE-$(target)=$$(ARCH-$(target))-apple-$$(TRIPLE_OS-$(target))$$(VERSION_MIN-$(os))
140+
TARGET_TRIPLE-$(target)=$$(ARCH-$(target))-apple-$$(TRIPLE_OS-$(os))$$(VERSION_MIN-$(os))
142141
IS_SIMULATOR-$(target)=False
143142
else
144-
TARGET_TRIPLE-$(target)=$$(ARCH-$(target))-apple-$$(TRIPLE_OS-$(target))$$(VERSION_MIN-$(os))-simulator
143+
TARGET_TRIPLE-$(target)=$$(ARCH-$(target))-apple-$$(TRIPLE_OS-$(os))$$(VERSION_MIN-$(os))-simulator
145144
IS_SIMULATOR-$(target)=True
146145
endif
147146
endif
@@ -408,16 +407,13 @@ define build-sdk
408407
sdk=$1
409408
os=$2
410409

411-
OS_LOWER-$(sdk)=$(shell echo $(os) | tr '[:upper:]' '[:lower:]')
412-
TRIPLE_OS-$(sdk)=$$(TRIPLE_OS-$(os))
413-
414410
SDK_TARGETS-$(sdk)=$$(filter $(sdk).%,$$(TARGETS-$(os)))
415411
SDK_ARCHES-$(sdk)=$$(sort $$(subst .,,$$(suffix $$(SDK_TARGETS-$(sdk)))))
416412

417413
ifeq ($$(findstring simulator,$(sdk)),)
418-
SDK_SLICE-$(sdk)=$$(TRIPLE_OS-$(sdk))-$$(shell echo $$(SDK_ARCHES-$(sdk)) | sed "s/ /_/g")
414+
SDK_SLICE-$(sdk)=$$(TRIPLE_OS-$(os))-$$(shell echo $$(SDK_ARCHES-$(sdk)) | sed "s/ /_/g")
419415
else
420-
SDK_SLICE-$(sdk)=$$(TRIPLE_OS-$(sdk))-$$(shell echo $$(SDK_ARCHES-$(sdk)) | sed "s/ /_/g")-simulator
416+
SDK_SLICE-$(sdk)=$$(TRIPLE_OS-$(os))-$$(shell echo $$(SDK_ARCHES-$(sdk)) | sed "s/ /_/g")-simulator
421417
endif
422418

423419
# Expand the build-target macro for target on this OS

0 commit comments

Comments
 (0)