From 5dea03650d4ba63dba177f5a8790caa25533d1c2 Mon Sep 17 00:00:00 2001 From: Romain BOULLARD Date: Fri, 20 Feb 2026 17:47:06 +0100 Subject: [PATCH] fix asan packaging --- mimalloc/all/conanfile.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mimalloc/all/conanfile.py b/mimalloc/all/conanfile.py index 740aca8..24caa2d 100644 --- a/mimalloc/all/conanfile.py +++ b/mimalloc/all/conanfile.py @@ -93,6 +93,11 @@ class MimallocConan(ConanFile): raise ConanInvalidConfiguration( f"Currently, {self.ref} doesn't work properly with shared MD builds in CCI. Contributions welcomed") + if self.options.override and \ + self.options.asan: + raise ConanInvalidConfiguration( + "Asan requires Mimalloc to be compiled without override") + # Shared overriding requires dynamic runtime for MSVC: if self.options.override and \ self.options.shared and \ @@ -215,8 +220,13 @@ class MimallocConan(ConanFile): def package_info(self): self.cpp_info.set_property("cmake_file_name", "mimalloc") - self.cpp_info.set_property("cmake_target_name", "mimalloc" if self.options.shared else "mimalloc-static") - + if(self.options.asan): + self.cpp_info.set_property("cmake_target_name", "mimalloc-asan") + elif(self.options.shared): + self.cpp_info.set_property("cmake_target_name", "mimalloc") + else: + self.cpp_info.set_property("cmake_target_name", "mimalloc-static") + if self.options.get_safe("inject"): self.cpp_info.includedirs = [] self.cpp_info.libdirs = []