diff --git a/simd/CMakeLists.txt b/simd/CMakeLists.txt index fa5eaf933..04861120e 100644 --- a/simd/CMakeLists.txt +++ b/simd/CMakeLists.txt @@ -162,7 +162,7 @@ if ( MB_XCODE_USE_INTEL_SIMD ) # For Mac Catalyst use the C fallback implementation as object files produced by NASM cannot be linked # into a Mac Catalyst binary (link error: "building for Mac Catalyst, but linking in object file built for ,") set( need_x64 OFF ) - if ( NOT DEFINED MB_IOS_SDK OR MB_IOS_SDK STREQUAL "simulator" ) + if ( NOT DEFINED MB_IOS_SDK OR MB_IOS_SDK STREQUAL "simulator" OR MB_IOS_SDK STREQUAL "maccatalyst" ) unset( intel_x64_objs ) create_simd_objects( intel_x64_objs x86_64 "${intel_x64_asm_sources}" ) @@ -200,11 +200,6 @@ if ( need_x64 ) list( APPEND lipo_deps Intel64Assemble ) endif() -if ( MB_IOS_SDK STREQUAL "maccatalyst" ) - # need Intel, but use C implementation - set( intel_x64_sources ../jsimd_none.c ) -endif() - if ( need_simd_objects_lib ) if ( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ) set( simd_objs_lib ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/$CONFIGURATION/libsimdobjects.a )