"src/runtime/vscode:/vscode.git/clone" did not exist on "3f138ebaafdca85b02407310432f93c37e147659"
Unverified Commit 15188611 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fix build issue on mac OS (#4175)

* [BugFix] fix build issue on mac OS

* refine
parent cb39dbfa
......@@ -124,10 +124,12 @@ endif(USE_AVX)
if ((NOT MSVC) AND USE_EPOLL)
INCLUDE(CheckIncludeFile)
check_include_file("sys/epoll.h" USE_EPOLL)
if (USE_EPOLL)
check_include_file("sys/epoll.h" EPOLL_AVAILABLE)
if (EPOLL_AVAILABLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_EPOLL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_EPOLL")
else()
message(WARNING "EPOLL is not available on this platform...")
endif()
endif ()
......
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