From 67226948b9f00aebbf33c232d10c417ba1abb289 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Tue, 16 Mar 2021 12:31:35 +0000 Subject: Benchmarks now show LLFIO dynamic_thread_pool_group either matching or significantly beating all other alternatives in performance. --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 11750c94..aa6e8d20 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,11 +28,15 @@ include(QuickCppLibUtils) include(QuickCppLibPolicies) option(LLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE "Whether to use SG14 status_code for failure handling" OFF) -option(LLFIO_DISABLE_LIBDISPATCH "Whether to disable automatic discovery of libdispatch/Grand Unified Dispatch" OFF) option(LLFIO_ENABLE_DEPENDENCY_SMOKE_TEST "Whether to build executables which are smoke tests that LLFIO is fully working. Used by various package managers such as vcpkg." OFF) option(LLFIO_ASSUME_CROSS_COMPILING "Whether to assume we are cross compiling. Normally automatically detected, but if automatic detection doesn't work, a working will not be found during cmake configure." OFF) option(UNIT_TESTS_BUILD_ALL "Whether to run all of the unit test suite." OFF) set(UNIT_TESTS_CXX_VERSION "latest" CACHE STRING "The version of C++ to use in the header-only unit tests") +if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR APPLE) + option(LLFIO_USE_LIBDISPATCH "Whether to use libdispatch/Grand Unified Dispatch (defaults on on BSD/Mac OS)" ON) +else() + option(LLFIO_USE_LIBDISPATCH "Whether to use libdispatch/Grand Unified Dispatch (defaults on on BSD/Mac OS)" OFF) +endif() ensure_git_subrepo("${CMAKE_CURRENT_SOURCE_DIR}/include/llfio/ntkernel-error-category/include" "https://github.com/ned14/ntkernel-error-category.git") @@ -285,7 +289,7 @@ int main() { endif() endif() # Do we have Grand Central Dispatch on this platform? -if(NOT LLFIO_DISABLE_LIBDISPATCH) +if(LLFIO_USE_LIBDISPATCH) function(check_have_libdispatch postfix) set(CMAKE_REQUIRED_LIBRARIES ${ARGN}) check_cxx_source_compiles(" -- cgit v1.2.3