Unverified Commit 774d5753 authored by czkkkkkk's avatar czkkkkkk Committed by GitHub
Browse files

[CMAKE] Disable --exclude-libs option in MAX OS (#4992)

parent 394794b1
...@@ -254,8 +254,10 @@ if(NOT MSVC) ...@@ -254,8 +254,10 @@ if(NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
# Avoid exposing third-party symbols when using DGL as a library. # Avoid exposing third-party symbols when using DGL as a library.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--exclude-libs,ALL") if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--exclude-libs,ALL") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--exclude-libs,ALL")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--exclude-libs,ALL")
endif()
endif(NOT MSVC) endif(NOT MSVC)
# Compile TVM Runtime and Featgraph # Compile TVM Runtime and Featgraph
......
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