Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

build: disable swift-numerics on Darwin targets #1060

Merged
merged 1 commit into from
Aug 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ option(USE_BUNDLED_CTENSORFLOW
"Use the CTensorFlow module bundled in the active Swift toolchain" OFF)
option(ENABLE_PYTHON_SUPPORT
"Enable Python interop using PythonKit" ON)

# FIXME: disable swift-numerics on Darwin as `-force-autoload-symbol` and
# `-incremental` do not play well together on Darwin.
if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
set(ENABLE_SWIFT_NUMERICS_default NO)
else()
set(ENABLE_SWIFT_NUMERICS_default YES)
endif()
option(ENABLE_SWIFT_NUMERICS
"Enable integrating swift-numerics" YES)
"Enable integrating swift-numerics" ${ENABLE_SWIFT_NUMERICS_default})

if(ENABLE_SWIFT_NUMERICS)
include(ExternalProject)
Expand Down