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 41c7a31b62 - Show all commits

View File

@@ -29,6 +29,7 @@ class MimallocConan(ConanFile):
"single_object": [True, False],
"guarded": [True, False],
"win_redirect": [True, False],
"asan": [True, False],
}
default_options = {
"shared": False,
@@ -39,6 +40,7 @@ class MimallocConan(ConanFile):
"single_object": False,
"guarded": False,
"win_redirect": False,
"asan": False,
}
def export_sources(self):
@@ -129,6 +131,7 @@ class MimallocConan(ConanFile):
tc.variables["MI_WIN_REDIRECT"] = "ON" if self.options.get_safe("win_redirect") else "OFF"
tc.variables["MI_INSTALL_TOPLEVEL"] = "ON"
tc.variables["MI_GUARDED"] = self.options.get_safe("guarded", False)
tc.variables["MI_TRACK_ASAN"] = "ON" if self.options.get_safe("asan") else "OFF"
if Version(self.version) <= "1.7.6":
tc.cache_variables["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5" # CMake 4 support
tc.generate()