From 1f66097fabc8e61b26bbff9fbbc7fe2bfd829b1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 17:50:43 +0000 Subject: [PATCH 1/2] Initial plan From ced39af58096c3f6b0b613a97e06683c68b54905 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 17:52:31 +0000 Subject: [PATCH 2/2] fix(plugins): add sanitizer link flags to NPDetPlugins Agent-Logs-Url: https://github.com/eic/npsim/sessions/cb177609-46c4-4616-a786-af46326ddc0f Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com> --- src/plugins/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 6216894..6552aab 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -9,6 +9,15 @@ dd4hep_add_plugin(NPDetPlugins USES DD4hep::DDCore DD4hep::DDG4 ) +if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") + if(USE_ASAN) + target_link_options(NPDetPlugins PRIVATE -fsanitize=address) + endif() + if(USE_UBSAN) + target_link_options(NPDetPlugins PRIVATE -fsanitize=undefined) + endif() +endif() + install(TARGETS NPDetPlugins EXPORT NPDetTargets LIBRARY DESTINATION lib