From 9996ddd603e6486730872b816e9cf22cefd00fbc Mon Sep 17 00:00:00 2001 From: alves Date: Wed, 10 Dec 2025 17:27:36 +0800 Subject: [PATCH] feature set the sentry sdk flags. --- CMakeLists.txt | 4 +--- deps/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c43dec8756..cc83da3582 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,9 +101,7 @@ option(SLIC3R_PERL_XS "Compile XS Perl module and enable Perl unit and option(SLIC3R_ASAN "Enable ASan on Clang and GCC" 0) # Sentry crash reporting - enabled only on Windows by default -if (WIN32) - set(SLIC3R_SENTRY_DEFAULT ON) -elseif (APPLE) +if (WIN32 OR APPLE) set(SLIC3R_SENTRY_DEFAULT ON) else() set(SLIC3R_SENTRY_DEFAULT OFF) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index de9fae0bc5..4b0d02d2a8 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -63,7 +63,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") endif() # Sentry crash reporting - enabled only on Windows by default -if (WIN32) +if (WIN32 OR APPLE) set(SLIC3R_SENTRY_DEFAULT ON) else() set(SLIC3R_SENTRY_DEFAULT OFF)