From db875033f35d473f31ad32368ec9dffbcd53e43d Mon Sep 17 00:00:00 2001 From: Ray molenkamp Date: Thu, 11 Apr 2024 16:08:50 +0200 Subject: [PATCH] makesdna/rna: cleanup duplicated translation units Historically makesdna/rna did not link bf_guardedalloc for some reason, but during one of my cmake cleanups have picked up this dependency anyhow. To prevent duplicate symbols, remove the now duplicated translation units as linking bf_guardedalloc has seemingly not caused any issues. Pull Request: https://projects.blender.org/blender/blender/pulls/120490 --- source/blender/makesdna/intern/CMakeLists.txt | 5 ----- source/blender/makesrna/intern/CMakeLists.txt | 6 ------ 2 files changed, 11 deletions(-) diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt index 3844f3a7b7b..8481dddf4a9 100644 --- a/source/blender/makesdna/intern/CMakeLists.txt +++ b/source/blender/makesdna/intern/CMakeLists.txt @@ -69,11 +69,6 @@ set(SRC dna_utils.cc makesdna.cc ${SRC_BLENLIB} - ../../../../intern/guardedalloc/intern/leak_detector.cc - ../../../../intern/guardedalloc/intern/mallocn.c - ../../../../intern/guardedalloc/intern/mallocn_guarded_impl.c - ../../../../intern/guardedalloc/intern/mallocn_lockfree_impl.c - ../../../../intern/guardedalloc/intern/memory_usage.cc ${dna_header_include_file} ${dna_header_string_file} ) diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt index 58f9cf04913..a2a509ab891 100644 --- a/source/blender/makesrna/intern/CMakeLists.txt +++ b/source/blender/makesrna/intern/CMakeLists.txt @@ -222,12 +222,6 @@ set(SRC ${DEFSRC} ${APISRC} ../../../../intern/clog/clog.c - ../../../../intern/guardedalloc/intern/leak_detector.cc - ../../../../intern/guardedalloc/intern/mallocn.c - ../../../../intern/guardedalloc/intern/mallocn_guarded_impl.c - ../../../../intern/guardedalloc/intern/mallocn_lockfree_impl.c - ../../../../intern/guardedalloc/intern/memory_usage.cc - # Needed for defaults. ../../../../release/datafiles/userdef/userdef_default.c ../../../../release/datafiles/userdef/userdef_default_theme.c