mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
22
package/rustc/rustc.mk
Normal file
22
package/rustc/rustc.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# rustc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RUSTC_ARCH = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ARCH))
|
||||
RUSTC_ABI = $(call qstrip,$(BR2_PACKAGE_HOST_RUSTC_ABI))
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS),y)
|
||||
RUSTC_TARGET_NAME = $(RUSTC_ARCH)-unknown-linux-gnu$(RUSTC_ABI)
|
||||
endif
|
||||
|
||||
ifeq ($(HOSTARCH),x86)
|
||||
RUSTC_HOST_ARCH = i686
|
||||
else
|
||||
RUSTC_HOST_ARCH = $(HOSTARCH)
|
||||
endif
|
||||
|
||||
RUSTC_HOST_NAME = $(RUSTC_HOST_ARCH)-unknown-linux-gnu
|
||||
|
||||
$(eval $(host-virtual-package))
|
||||
Reference in New Issue
Block a user