We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1dfaf3 commit d0a2dceCopy full SHA for d0a2dce
tools/system_libs.py
@@ -1792,6 +1792,9 @@ class libmimalloc(MTLibrary):
1792
1793
cflags = [
1794
'-fno-builtin',
1795
+ '-Wno-unused-function',
1796
+ '-Wno-unused-but-set-variable',
1797
+ '-Wno-unused-variable',
1798
'-Wno-deprecated-pragma',
1799
# build emmalloc as only a system allocator, without exporting itself onto
1800
# malloc/free in the global scope
@@ -1800,6 +1803,8 @@ class libmimalloc(MTLibrary):
1803
'-DMI_MALLOC_OVERRIDE',
1801
1804
# TODO: add build modes that include debug checks 1,2,3
1802
1805
'-DMI_DEBUG=0',
1806
+ # disable `assert()` in the underlying emmalloc allocator
1807
+ '-DNDEBUG',
1808
]
1809
1810
# malloc/free/calloc are runtime functions and can be generated during LTO
0 commit comments