Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: add arch detection. #179

Closed
wants to merge 1 commit into from

Conversation

aarlt
Copy link

@aarlt aarlt commented Mar 26, 2022

Fixes #178.

@bugcrazy
Copy link

bugcrazy commented Oct 9, 2022

Please add this architectures to your patch, as Void Linux and Alpine Linux use these architectures and other distro, as well as having versions with musl:

aarch64-musl
aarch64
armv5te-musl
armv5te
armv5tel-musl
armv5tel
armv6hf-musl
armv6hf
armv6l-musl
armv6l
armv7hf-musl
armv7hf
armv7l-musl
armv7l
i686-musl
i686
mips-musl
mipsel-musl
mipselhf-musl
mipshf-musl
ppc-musl
ppc
ppc64-musl
ppc64
ppc64le-musl
ppc64le
ppcle-musl
ppcle
x86_64-musl
x86_64

Sorry for repeating some architectures, which are already in your patch.

@kmahyyg kmahyyg mentioned this pull request Jan 1, 2023
@someara someara deleted the branch zerotier:master January 6, 2023 14:38
@someara someara closed this Jan 6, 2023
ELSEIF (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
SET(ZT_ARCHITECTURE 4)
SET(ZT_SSO_SUPPORTED 1)
ADD_DEFINITIONS(-DZT_NO_TYPE_PUNNING -DZT_ARCH_ARM_HAS_NEON -march=armv8-a+crypto -mtune=generic -mstrict-align)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. The Armv8A crypto extension is optional and not all CPUs support it. For example Raspberry Pi 4 doesn't, it will compile but crash with illegal instruction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libzt on arm
4 participants