Merge pull request #5977 from stevenhorsman/foreign-CC

CC | agent: unset `CC` for cross-build
This commit is contained in:
Fabiano Fidêncio 2023-01-04 18:36:48 +01:00 committed by GitHub
commit f23b087145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,7 @@ ifneq ($(HOST_ARCH),$(ARCH))
$(warning "WARNING: A foreign ARCH was passed, but no CC alternative. Using $(CC).")
endif
override EXTRA_RUSTFLAGS += -C linker=$(CC)
undefine CC
endif
TRIPLE = $(ARCH)-unknown-linux-$(LIBC)