forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#14931) mimalloc: add version 1.7.9, 2.0.9
* mimalloc: add version 1.7.9, 2.0.9 * fix compilation error on msvc * use self.settings instead self.info.settings Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * use self.settings instead of self.info.settings Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * create patches for older compilers --------- Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
- Loading branch information
1 parent
aaf10f4
commit 58bc49d
Showing
7 changed files
with
119 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
recipes/mimalloc/all/patches/1.7.9-0001-change-install-paths.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 0011b87..41a15a2 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -383,7 +383,7 @@ if(MI_BUILD_SHARED) | ||
install(FILES "$<TARGET_FILE_DIR:mimalloc>/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll" DESTINATION ${mi_install_libdir}) | ||
endif() | ||
|
||
- install(TARGETS mimalloc EXPORT mimalloc DESTINATION ${mi_install_libdir} LIBRARY) | ||
+ install(TARGETS mimalloc EXPORT mimalloc RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir}) | ||
endif() | ||
|
||
@@ -407,7 +407,7 @@ if (MI_BUILD_STATIC) | ||
set_target_properties(mimalloc-static PROPERTIES OUTPUT_NAME ${mi_basename}) | ||
endif() | ||
|
||
- install(TARGETS mimalloc-static EXPORT mimalloc DESTINATION ${mi_install_objdir} LIBRARY) | ||
+ install(TARGETS mimalloc-static EXPORT mimalloc RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir}) | ||
endif() | ||
|
22 changes: 22 additions & 0 deletions
22
recipes/mimalloc/all/patches/1.7.9-0002-support-older-compiler.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/include/mimalloc.h b/include/mimalloc.h | ||
index f590033..a4275c5 100644 | ||
--- a/include/mimalloc.h | ||
+++ b/include/mimalloc.h | ||
@@ -493,7 +493,7 @@ template<class T, bool destroy> struct _mi_heap_stl_allocator_common : public _m | ||
#endif | ||
|
||
void collect(bool force) { mi_heap_collect(this->heap.get(), force); } | ||
- template<class U> bool is_equal(const _mi_heap_stl_allocator_common<U, destroy>& x) const { return (this->heap == x.heap); } | ||
+ template<class U, bool b> bool is_equal(const _mi_heap_stl_allocator_common<U, b>& x) const { return (this->heap == x.heap); } | ||
|
||
protected: | ||
std::shared_ptr<mi_heap_t> heap; | ||
@@ -504,7 +504,7 @@ protected: | ||
this->heap.reset(hp, (destroy ? &heap_destroy : &heap_delete)); /* calls heap_delete/destroy when the refcount drops to zero */ | ||
} | ||
_mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common& x) mi_attr_noexcept : heap(x.heap) { } | ||
- template<class U> _mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common<U, destroy>& x) mi_attr_noexcept : heap(x.heap) { } | ||
+ template<class U, bool b> _mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common<U, b>& x) mi_attr_noexcept : heap(x.heap) { } | ||
|
||
private: | ||
static void heap_delete(mi_heap_t* hp) { if (hp != NULL) { mi_heap_delete(hp); } } |
22 changes: 22 additions & 0 deletions
22
recipes/mimalloc/all/patches/2.0.9-0001-change-install-paths.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 74c1f29..d657144 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -383,7 +383,7 @@ if(MI_BUILD_SHARED) | ||
install(FILES "$<TARGET_FILE_DIR:mimalloc>/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll" DESTINATION ${mi_install_libdir}) | ||
endif() | ||
|
||
- install(TARGETS mimalloc EXPORT mimalloc DESTINATION ${mi_install_libdir} LIBRARY) | ||
+ install(TARGETS mimalloc EXPORT mimalloc RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir}) | ||
endif() | ||
|
||
@@ -407,7 +407,7 @@ if (MI_BUILD_STATIC) | ||
set_target_properties(mimalloc-static PROPERTIES OUTPUT_NAME ${mi_basename}) | ||
endif() | ||
|
||
- install(TARGETS mimalloc-static EXPORT mimalloc DESTINATION ${mi_install_objdir} LIBRARY) | ||
+ install(TARGETS mimalloc-static EXPORT mimalloc RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | ||
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir}) | ||
endif() | ||
|
22 changes: 22 additions & 0 deletions
22
recipes/mimalloc/all/patches/2.0.9-0002-support-older-compiler.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/include/mimalloc.h b/include/mimalloc.h | ||
index 9b72fbf..b34362f 100644 | ||
--- a/include/mimalloc.h | ||
+++ b/include/mimalloc.h | ||
@@ -500,7 +500,7 @@ template<class T, bool destroy> struct _mi_heap_stl_allocator_common : public _m | ||
#endif | ||
|
||
void collect(bool force) { mi_heap_collect(this->heap.get(), force); } | ||
- template<class U> bool is_equal(const _mi_heap_stl_allocator_common<U, destroy>& x) const { return (this->heap == x.heap); } | ||
+ template<class U, bool b> bool is_equal(const _mi_heap_stl_allocator_common<U, b>& x) const { return (this->heap == x.heap); } | ||
|
||
protected: | ||
std::shared_ptr<mi_heap_t> heap; | ||
@@ -511,7 +511,7 @@ protected: | ||
this->heap.reset(hp, (destroy ? &heap_destroy : &heap_delete)); /* calls heap_delete/destroy when the refcount drops to zero */ | ||
} | ||
_mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common& x) mi_attr_noexcept : heap(x.heap) { } | ||
- template<class U> _mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common<U, destroy>& x) mi_attr_noexcept : heap(x.heap) { } | ||
+ template<class U, bool b> _mi_heap_stl_allocator_common(const _mi_heap_stl_allocator_common<U, b>& x) mi_attr_noexcept : heap(x.heap) { } | ||
|
||
private: | ||
static void heap_delete(mi_heap_t* hp) { if (hp != NULL) { mi_heap_delete(hp); } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters