diff --git a/cmake/Toolchain-cctools.cmake b/cmake/Toolchain-cctools.cmake index e6091d653..7f6c43094 100644 --- a/cmake/Toolchain-cctools.cmake +++ b/cmake/Toolchain-cctools.cmake @@ -16,11 +16,6 @@ else() set(CLANG_ARCH ${CCTOOLS_ARCH}) endif() -if (NOT CCTOOLS_PLATFORM MATCHES MacOSX) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode") -endif() - SET(CMAKE_C_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang) SET(CMAKE_CXX_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang++) SET(CMAKE_RANLIB ${CCTOOLS_PREFIX}/bin/${CLANG_ARCH}-apple-darwin11-ranlib) diff --git a/cmake/Toolchain-ios-xcode.cmake b/cmake/Toolchain-ios-xcode.cmake index 62df662f4..4a8c80f70 100644 --- a/cmake/Toolchain-ios-xcode.cmake +++ b/cmake/Toolchain-ios-xcode.cmake @@ -101,12 +101,7 @@ set(CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") set(CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") set(CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") -# For archive -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode") - # Fixed variables in iOS STK -set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE YES CACHE INTERNAL "") set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC NO CACHE INTERNAL "") set(CMAKE_XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES CACHE INTERNAL "") set(USE_WIIUSE FALSE CACHE BOOL "")