From 6de42041e698147d4d3bc45ea369d2b5564b95ed Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Tue, 23 Jan 2024 17:55:00 +0000 Subject: [PATCH] Remove compile option "-mfpu=neon-vfpv" on arm64 processors The compile option is set for file "rdparty/stb/stb_impl.c". Apple Silicon is an arm64 processor and the compile option was not valid. --- renderdoc/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index ab9e6808e..aeb3f14a8 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -419,7 +419,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-format-truncation") # stb_image requires these flags to enable ARM SIMD (NEON) for arm32 - if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") + if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm64") set_source_files_properties(3rdparty/stb/stb_impl.c PROPERTIES COMPILE_FLAGS "-mfpu=neon-vfpv4 -mfp16-format=ieee") endif() @@ -446,7 +446,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) PROPERTIES COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-self-assign-overloaded") # stb_image requires these flags to enable ARM SIMD (NEON) for arm32 - if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") + if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm64") set_source_files_properties(3rdparty/stb/stb_impl.c PROPERTIES COMPILE_FLAGS "-mfpu=neon-vfpv4") endif()