We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd00a3 commit b740a00Copy full SHA for b740a00
CMakeLists.txt
@@ -11,9 +11,11 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
11
12
option(WITHOUT_IOURING "use epoll/poll/kqueue to support IOCP. not io_uring" OFF)
13
14
-if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
15
- add_compile_options(-ffunction-sections -fdata-sections)
16
- add_link_options(-Wl,--gc-sections)
+if (NOT APPLE)
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
+ add_compile_options(-ffunction-sections -fdata-sections)
17
+ add_link_options(-Wl,--gc-sections)
18
+ endif()
19
endif()
20
21
if (NOT WIN32)
0 commit comments