Skip to content

Commit

Permalink
enable SIMD objects also for iOS simulator and Mac Catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
DoDoENT committed Jan 29, 2024
1 parent 9a6cafe commit 1fbbe1d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions simd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}" )

Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 1fbbe1d

Please sign in to comment.