File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
108
108
set (REL_FLAGS "-s -Wl,--gc-sections -Os ${WARN_FLAGS} -ffunction-sections -fdata-sections -fmerge-all-constants -ffast-math" )
109
109
elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
110
110
set (REL_FLAGS "${WARN_FLAGS} " )
111
+ elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "AppleClang" )
112
+ # AppleClang does not support -ffunction-sections and -fdata-sections with the -fembed-bitcode and -fembed-bitcode-marker
113
+ set (REL_FLAGS "-Os ${WARN_FLAGS} -fmerge-all-constants -ffast-math" )
111
114
else ()
112
115
# Using clang - strip unsupported GCC options
113
116
set (REL_FLAGS "-Os ${WARN_FLAGS} -ffunction-sections -fmerge-all-constants -ffast-math" )
You can’t perform that action at this time.
0 commit comments