feature set the sentry sdk flags.

This commit is contained in:
alves
2025-12-10 17:27:36 +08:00
parent 0a1dcd43c0
commit 9996ddd603
2 changed files with 2 additions and 4 deletions

View File

@@ -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)

2
deps/CMakeLists.txt vendored
View File

@@ -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)