Commit d490f9a8 authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

config-ios.cmake: fix LINPHONE_BUILDER_HOST value

parent 479521bb
......@@ -42,10 +42,7 @@ set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=YES")
if (NOT LINPHONE_IOS_DEPLOYMENT_TARGET)
set(LINPHONE_IOS_DEPLOYMENT_TARGET 6.0)
endif()
get_filename_component(COMPILER_NAME ${CMAKE_C_COMPILER} NAME)
string(REGEX REPLACE "-clang$" "" LINPHONE_BUILDER_HOST ${COMPILER_NAME})
string(REGEX REPLACE "^arm64" "aarch64" LINPHONE_BUILDER_HOST ${LINPHONE_BUILDER_HOST})
unset(COMPILER_NAME)
set(LINPHONE_BUILDER_HOST "${CMAKE_OSX_ARCHITECTURES}-apple-darwin")
if("${PLATFORM}" MATCHES "Simulator")
set(CLANG_TARGET_SPECIFIER "ios-simulator-version-min")
else()
......
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