mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
b7f0327dcd
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
10 lines
156 B
C
10 lines
156 B
C
#ifndef __x86_64__
|
|
# error "Not compiling as x86_64"
|
|
#endif
|
|
#ifdef __aarch64__
|
|
# error "Incorrectly compiling as arm64"
|
|
#endif
|
|
void x86_64_arch(void)
|
|
{
|
|
}
|