summaryrefslogtreecommitdiff
path: root/demangler/gnu3/CMakeLists.txt
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-10-23 20:18:23 -0400
committerGlenn Smith <glenn@vector35.com>2024-10-23 20:22:55 -0400
commit2214557964551956750203029321329689282546 (patch)
tree78abec7b3ea50e6c3b9f584307afbe52c5ff76dd /demangler/gnu3/CMakeLists.txt
parent83fbc7ebf26678de9a695c05fd87e0f77959ef52 (diff)
Compile demangler plugins directly into the core for P E R F
Turns out, this is a rather hot path on initial binary loading (>50% runtime), and trying to pipe it all through the FFI makes it really slow. Like 100% slower. Ouch. Now, the demangler plugins are written with a bunch of #ifdef macros to allow for building both as a plugin and directly into the core. There is no functionality change here apart from regaining the lost performance.
Diffstat (limited to 'demangler/gnu3/CMakeLists.txt')
-rw-r--r--demangler/gnu3/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/demangler/gnu3/CMakeLists.txt b/demangler/gnu3/CMakeLists.txt
index 58d7fe4f..95392c5f 100644
--- a/demangler/gnu3/CMakeLists.txt
+++ b/demangler/gnu3/CMakeLists.txt
@@ -41,4 +41,6 @@ if(BN_INTERNAL_BUILD)
set_target_properties(${PROJECT_NAME} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}
RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR})
+else()
+ bn_install_plugin(${PROJECT_NAME})
endif()