We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e524f commit 0fa60bbCopy full SHA for 0fa60bb
1 file changed
CMakeLists.txt
@@ -108,6 +108,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
108
set(REL_FLAGS "-s -Wl,--gc-sections -Os ${WARN_FLAGS} -ffunction-sections -fdata-sections -fmerge-all-constants -ffast-math")
109
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
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")
114
else()
115
# Using clang - strip unsupported GCC options
116
set(REL_FLAGS "-Os ${WARN_FLAGS} -ffunction-sections -fmerge-all-constants -ffast-math")
0 commit comments