Check for APPLE before doing OSX-related arch checks

This commit is contained in:
Harold Cindy 2023-12-03 01:44:18 +00:00
parent ce1800746b
commit 7482861d27

View file

@ -17,7 +17,7 @@ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
return()
endif()
if(NOT CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
if(APPLE AND NOT CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
message(WARNING "Building the Luau fuzzer for ARM64 is currently unsupported.")
return()
endif()