summaryrefslogtreecommitdiff
path: root/view/sharedcache/workflow
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2024-10-28 11:58:15 -0400
committerkat <kat@vector35.com>2024-10-28 12:58:51 -0400
commit07bce5f257d30061475452ec9c2e06a132747b54 (patch)
tree434dbd4660b981edd81c3f1651e868aacb240b26 /view/sharedcache/workflow
parent891b8c0d4366266c0b9af08037dbd71c54cf86b3 (diff)
[SharedCache] Fix UI causing BV leaks
Diffstat (limited to 'view/sharedcache/workflow')
-rw-r--r--view/sharedcache/workflow/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/view/sharedcache/workflow/CMakeLists.txt b/view/sharedcache/workflow/CMakeLists.txt
index 81e4498c..7648492a 100644
--- a/view/sharedcache/workflow/CMakeLists.txt
+++ b/view/sharedcache/workflow/CMakeLists.txt
@@ -5,7 +5,11 @@ file(GLOB SOURCES *.cpp *.h)
add_library(sharedcacheworkflow OBJECT ${SOURCES})
if (VIEW_NAME)
- target_compile_definitions(sharedcacheworkflow PRIVATE VIEW_NAME="${VIEW_NAME}")
+ if (BN_REF_COUNT_DEBUG)
+ target_compile_definitions(sharedcacheworkflow PRIVATE VIEW_NAME="${VIEW_NAME}" BN_REF_COUNT_DEBUG)
+ else()
+ target_compile_definitions(sharedcacheworkflow PRIVATE VIEW_NAME="${VIEW_NAME}")
+ endif()
else()
error("VIEW_NAME must be defined")
endif()
@@ -38,6 +42,8 @@ function(get_recursive_include_dirs target result)
set(${result} ${include_dirs} PARENT_SCOPE)
endfunction()
+message(STATUS "RCD: ${BN_REF_COUNT_DEBUG}")
+
get_recursive_include_dirs(binaryninjaapi INCLUDES)
target_include_directories(sharedcacheworkflow