Skip to content

Commit d47cb93

Browse files
committed
Add explicit AS definition.
1 parent 7e823f9 commit d47cb93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ TARGET_TRIPLE-$(target)=$$(ARCH-$(target))-apple-$$(TRIPLE_OS-$(os))$$(VERSION_M
230230

231231
SDK_ROOT-$(target)=$$(shell xcrun --sdk $$(SDK-$(target)) --show-sdk-path)
232232
CC-$(target)=xcrun --sdk $$(SDK-$(target)) clang -target $$(TARGET_TRIPLE-$(target))
233-
CXX-$(target)=xcrun --sdk $$(SDK-$(target)) clang -target $$(TARGET_TRIPLE-$(target))
233+
AS-$(target)=xcrun --sdk $$(SDK-$(target)) as -target $$(TARGET_TRIPLE-$(target))
234+
CXX-$(target)=xcrun --sdk $$(SDK-$(target)) clang++ -target $$(TARGET_TRIPLE-$(target))
234235
CFLAGS-$(target)=\
235236
--sysroot=$$(SDK_ROOT-$(target)) \
236237
$$(CFLAGS-$(os))
@@ -473,6 +474,7 @@ $$(ZSTD_LIB-$(target)): $$(ZSTD_SRCDIR-$(target))/Makefile
473474
cd $$(ZSTD_SRCDIR-$(target)) && \
474475
PATH="$(PROJECT_DIR)/install/$(os)/bin:$(PATH)" \
475476
CC="$$(CC-$(target))" \
477+
AS="$$(AS-$(target))" \
476478
CFLAGS="$$(CFLAGS-$(target))" \
477479
LDFLAGS="$$(LDFLAGS-$(target))" \
478480
make -C lib install-static install-includes PREFIX=$$(ZSTD_INSTALL-$(target)) \
@@ -539,6 +541,7 @@ vars-$(target):
539541
@echo "TARGET_TRIPLE-$(target): $$(TARGET_TRIPLE-$(target))"
540542
@echo "SDK_ROOT-$(target): $$(SDK_ROOT-$(target))"
541543
@echo "CC-$(target): $$(CC-$(target))"
544+
@echo "AS-$(target): $$(AS-$(target))"
542545
@echo "CFLAGS-$(target): $$(CFLAGS-$(target))"
543546
@echo "LDFLAGS-$(target): $$(LDFLAGS-$(target))"
544547
@echo "BZIP2_SRCDIR-$(target): $$(BZIP2_SRCDIR-$(target))"

0 commit comments

Comments
 (0)