diff --git a/media-libs/assimp/patches/assimp-5.0.1.patchset b/media-libs/assimp/patches/assimp-5.0.1.patchset index 817ab1b41..b320b735d 100644 --- a/media-libs/assimp/patches/assimp-5.0.1.patchset +++ b/media-libs/assimp/patches/assimp-5.0.1.patchset @@ -143,3 +143,30 @@ index c659e19..c1a567a 100644 -- 2.30.0 + +From 07804ae559a567a759219fce6f83d1a40a5fadfb Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 26 May 2021 10:22:33 +0200 +Subject: remove debug info for StepFileGen1.cpp for x86 where memory is + limited + + +diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt +index 55538d9..04d0acf 100644 +--- a/code/CMakeLists.txt ++++ b/code/CMakeLists.txt +@@ -832,6 +832,11 @@ if ((CMAKE_COMPILER_IS_MINGW) AND (CMAKE_BUILD_TYPE MATCHES Debug)) + SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES STATIC_LIBRARY_FLAGS -Os ) + endif() + ++if (HAIKU) ++ message("-- Applying Haiku StepFileGen1.cpp Workaround for 2G Memory exhaustion") ++ SET_SOURCE_FILES_PROPERTIES(Importer/StepFile/StepFileGen1.cpp PROPERTIES COMPILE_FLAGS -g0 ) ++endif() ++ + ADD_ASSIMP_IMPORTER( STEP + Step/STEPFile.h + Importer/StepFile/StepFileImporter.h +-- +2.30.0 +