From 7482861d2708f7b6ac43a6f501330ec9b38628e8 Mon Sep 17 00:00:00 2001 From: Harold Cindy Date: Sun, 3 Dec 2023 01:44:18 +0000 Subject: [PATCH] Check for APPLE before doing OSX-related arch checks --- fuzz/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuzz/CMakeLists.txt b/fuzz/CMakeLists.txt index c18fbba5..4900e85c 100644 --- a/fuzz/CMakeLists.txt +++ b/fuzz/CMakeLists.txt @@ -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()