From 79f19c8bde8bcc19bb88b691041312b0d8aab193 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Fri, 17 Jan 2025 04:12:47 +0100 Subject: [PATCH] cmake: workaround minidump libraries finding for i686 nexe --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8098179555..1c47e803f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -510,6 +510,13 @@ if (WIN32) elseif (NACL) find_library(NACL_EXCEPTION nacl_exception) find_library(NACL_MINIDUMP minidump_generator) + + # HACK: To be removed when Saigo is repackaged properly. + if (NOT NACL_MINIDUMP) + set(NACL_EXCEPTION "${DEPS_DIR}/saigo_newlib/x86_64-nacl/lib32/libnacl_exception.a") + set(NACL_MINIDUMP "${DEPS_DIR}/saigo_newlib/x86_64-nacl/lib32/libminidump_generator.a") + endif() + set(LIBS_BASE ${LIBS_BASE} ${NACL_MINIDUMP} ${NACL_EXCEPTION}) else() find_library(LIBM m)