File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1792,6 +1792,9 @@ class libmimalloc(MTLibrary):
17921792
17931793 cflags = [
17941794 '-fno-builtin' ,
1795+ '-Wno-unused-function' ,
1796+ '-Wno-unused-but-set-variable' ,
1797+ '-Wno-unused-variable' ,
17951798 '-Wno-deprecated-pragma' ,
17961799 # build emmalloc as only a system allocator, without exporting itself onto
17971800 # malloc/free in the global scope
@@ -1800,6 +1803,8 @@ class libmimalloc(MTLibrary):
18001803 '-DMI_MALLOC_OVERRIDE' ,
18011804 # TODO: add build modes that include debug checks 1,2,3
18021805 '-DMI_DEBUG=0' ,
1806+ # disable `assert()` in emmalloc
1807+ '-DNDEBUG' ,
18031808 # avoid use of `__builtin_thread_pointer()`
18041809 # FIXME: https://github.com/llvm/llvm-project/issues/117433
18051810 '-DMI_LIBC_MUSL' ,
You can’t perform that action at this time.
0 commit comments