mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-21 10:01:46 +00:00
don't build on unsupported platforms
This commit is contained in:
parent
f511c9c938
commit
3c0adde0c7
@ -122,6 +122,7 @@ ifeq ($(CC_MACH),x86_64)
|
||||
ZT_USE_X64_ASM_ED25519=1
|
||||
override CFLAGS+=-msse -msse2
|
||||
override CXXFLAGS+=-msse -msse2
|
||||
ZT_SSO_SUPPORTED=1
|
||||
endif
|
||||
ifeq ($(CC_MACH),amd64)
|
||||
ZT_ARCHITECTURE=2
|
||||
@ -129,6 +130,7 @@ ifeq ($(CC_MACH),amd64)
|
||||
ZT_USE_X64_ASM_ED25519=1
|
||||
override CFLAGS+=-msse -msse2
|
||||
override CXXFLAGS+=-msse -msse2
|
||||
ZT_SSO_SUPPORTED=1
|
||||
endif
|
||||
ifeq ($(CC_MACH),powerpc64le)
|
||||
ZT_ARCHITECTURE=8
|
||||
@ -217,10 +219,12 @@ ifeq ($(CC_MACH),armv7ve)
|
||||
endif
|
||||
ifeq ($(CC_MACH),arm64)
|
||||
ZT_ARCHITECTURE=4
|
||||
ZT_SSO_SUPPORTED=1
|
||||
override DEFS+=-DZT_NO_TYPE_PUNNING -DZT_ARCH_ARM_HAS_NEON -march=armv8-a+crypto -mtune=generic -mstrict-align
|
||||
endif
|
||||
ifeq ($(CC_MACH),aarch64)
|
||||
ZT_ARCHITECTURE=4
|
||||
ZT_SSO_SUPPORTED=1
|
||||
override DEFS+=-DZT_NO_TYPE_PUNNING -DZT_ARCH_ARM_HAS_NEON -march=armv8-a+crypto -mtune=generic -mstrict-align
|
||||
endif
|
||||
ifeq ($(CC_MACH),mipsel)
|
||||
@ -371,8 +375,12 @@ debug: FORCE
|
||||
make ZT_DEBUG=1 one
|
||||
make ZT_DEBUG=1 selftest
|
||||
|
||||
ifeq ($(ZT_SSO_SUPPORTED), 1)
|
||||
zeroidc: FORCE
|
||||
cd zeroidc && cargo build $(RUSTFLAGS)
|
||||
else
|
||||
zeroidc:
|
||||
endif
|
||||
|
||||
# Note: keep the symlinks in /var/lib/zerotier-one to the binaries since these
|
||||
# provide backward compatibility with old releases where the binaries actually
|
||||
|
Loading…
x
Reference in New Issue
Block a user