Mimalloc Asan #7

Merged
rboullard merged 15 commits from Development into main 2026-02-20 18:41:42 +00:00
Showing only changes of commit 5dea03650d - Show all commits

View File

@@ -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,7 +220,12 @@ 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 = []