From 8e2ffc6d5fe3b26e9904994f0300b8fbff4ef681 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 7 Jun 2024 00:28:27 -0700 Subject: [PATCH] [crashpad] Add compilation condition restrictions to fix sentry-native linux runtime error --- handler/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/CMakeLists.txt b/handler/CMakeLists.txt index 55d2e4a97..6259a11fe 100644 --- a/handler/CMakeLists.txt +++ b/handler/CMakeLists.txt @@ -89,7 +89,7 @@ if(NOT IOS) main.cc ) - if(LINUX) + if(LINUX AND BUILD_SHARED_LIBS) target_sources(crashpad_handler PRIVATE ../client/pthread_create_linux.cc )