Commit a36092fd authored by Ghislain MARY's avatar Ghislain MARY

Fix opus build for iOS.

parent 2e2b398f
......@@ -58,7 +58,15 @@ else()
endif()
if(ENABLE_ASM)
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> ${CMAKE_C_FLAGS} -o <OBJECT> -c <SOURCE>")
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)
set(ARCH_OPTIONS "")
if(CMAKE_OSX_ARCHITECTURES)
set(ARCH_OPTIONS "${ARCH_OPTIONS} -arch ${CMAKE_OSX_ARCHITECTURES}")
endif()
if(CMAKE_OSX_SYSROOT)
set(ARCH_OPTIONS "${ARCH_OPTIONS} -isysroot ${CMAKE_OSX_SYSROOT}")
endif()
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> ${ARCH_OPTIONS} ${CMAKE_C_FLAGS_${UPPER_BUILD_TYPE}} -o <OBJECT> -c <SOURCE>")
enable_language(ASM)
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} SYSTEM_PROCESSOR)
#No optimization available yet for arm64
......
......@@ -230,7 +230,6 @@ macro(linphone_builder_apply_flags)
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)
set(BUILD_TYPE_SUFFIX "_${UPPER_BUILD_TYPE}")
endif()
set(BUILD_TYPE_SUFFIX "")
if(LINPHONE_BUILDER_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES ${LINPHONE_BUILDER_OSX_ARCHITECTURES})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment