]> git.proxmox.com Git - rustc.git/blob - debian/architecture.mk
Updated version 1.19.0+dfsg2 from 'upstream/1.19.0+dfsg2'
[rustc.git] / debian / architecture.mk
1 # This Makefile snippet defines DEB_*_RUST_TYPE triples based on DEB_*_GNU_TYPE
2
3 include /usr/share/dpkg/architecture.mk
4
5 rust_cpu = $(subst i586,i686,$(if $(findstring -armhf-,-$(2)-),$(subst arm,armv7,$(1)),$(1)))
6 rust_type_setvar = $(1)_RUST_TYPE ?= $(call rust_cpu,$($(1)_GNU_CPU),$($(1)_ARCH))-unknown-$($(1)_GNU_SYSTEM)
7
8 $(foreach machine,BUILD HOST TARGET,\
9 $(eval $(call rust_type_setvar,DEB_$(machine))))
10
11 # fallback for older dpkg versions
12 ifeq ($(DEB_TARGET_RUST_TYPE),-unknown-)
13 DEB_TARGET_RUST_TYPE = $(DEB_HOST_RUST_TYPE)
14 endif