blob: f6fa207ed4ef897875d9e17cadafe631dfcbba7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# $NetBSD: platform.mk,v 1.8 2021/04/19 17:08:09 he Exp $
# This file encodes whether a given platform has support for rust.
# Platforms where rust ought to work but does not require a link to an
# open PR.
.if !defined(PLATFORM_SUPPORTS_RUST)
# Rust needs NetBSD>7
. for rust_arch in aarch64 earmv7hf i386 powerpc sparc64 x86_64
. for rust_os in Darwin FreeBSD Linux NetBSD SunOS
. if ${OPSYS} != "NetBSD" || empty(OS_VERSION:M[0-7].*)
RUST_PLATFORMS+= ${rust_os}-*-${rust_arch}
. endif
. endfor
. endfor
. for rust_platform in ${RUST_PLATFORMS}
. if !empty(MACHINE_PLATFORM:M${rust_platform})
PLATFORM_SUPPORTS_RUST= yes
. endif
. endfor
PLATFORM_SUPPORTS_RUST?= no
.endif # !defined(PLATFORM_SUPPORTS_RUST)
|