diff --git a/CMakeLists.txt b/CMakeLists.txt index 79954f61a..eead3d5b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,8 +143,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") add_compile_options(/utf-8 /bigobj /permissive-) endif() -# mimalloc is incompatible with Python bindings on MacOS -if(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND SLANG_INCLUDE_PYLIB) +# mimalloc is incompatible with Python bindings +if(SLANG_INCLUDE_PYLIB) set(SLANG_USE_MIMALLOC OFF) endif()