Commit 9e27991e authored by jehan's avatar jehan

enable bitcode for xcode7 only

parent c54d75da
......@@ -51,7 +51,11 @@ if("${PLATFORM}" MATCHES "Simulator")
else()
set(CLANG_TARGET_SPECIFIER "iphoneos-version-min")
endif()
set(COMMON_FLAGS "-arch ${LINPHONE_BUILDER_OSX_ARCHITECTURES} -m${CLANG_TARGET_SPECIFIER}=${LINPHONE_IOS_DEPLOYMENT_TARGET} -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions -fembed-bitcode")
set(COMMON_FLAGS "-arch ${LINPHONE_BUILDER_OSX_ARCHITECTURES} -m${CLANG_TARGET_SPECIFIER}=${LINPHONE_IOS_DEPLOYMENT_TARGET} -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions")
#XCode7 allows bitcode
if (NOT ${XCODE_VERSION} VERSION_LESS 7)
set(COMMON_FLAGS "${COMMON_FLAGS} -fembed-bitcode")
endif()
set(LINPHONE_BUILDER_CPPFLAGS "${COMMON_FLAGS} -Dasm=__asm")
set(LINPHONE_BUILDER_LDFLAGS "${COMMON_FLAGS}")
set(LINPHONE_BUILDER_PKG_CONFIG_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) # Restrict pkg-config to search in the install directory
......
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