Files
CMake/Tests/RunCMake/AppleSilicon/arm64.c
T
Brad King b7f0327dcd Tests: Cover macOS host architecture selection on Apple Silicon hosts
Add test cases verifying that `CMAKE_APPLE_SILICON_PROCESSOR` set as
either a cache or environment variable causes that to be selected as the
host architecture.  Also verify that sources compile using whatever is
selected as the host architecture, even when the explicit setting is not
used.

Issue: #21554
2020-12-10 12:08:15 -05:00

10 lines
155 B
C

#ifndef __aarch64__
# error "Not compiling as arm64"
#endif
#ifdef __x86_64__
# error "Incorrectly compiling as x86_64"
#endif
void arm64_arch(void)
{
}