Skip to content

Commit 0dc7223

Browse files
committed
mimalloc: avoid use of __builtin_thread_pointer()
See: llvm/llvm-project#117433.
1 parent e19aa5b commit 0dc7223

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/system_libs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,9 @@ class libmimalloc(MTLibrary):
18001800
'-DMI_MALLOC_OVERRIDE',
18011801
# TODO: add build modes that include debug checks 1,2,3
18021802
'-DMI_DEBUG=0',
1803+
# avoid use of `__builtin_thread_pointer()`
1804+
# FIXME: https://github.com/llvm/llvm-project/issues/117433
1805+
'-DMI_LIBC_MUSL',
18031806
]
18041807

18051808
# malloc/free/calloc are runtime functions and can be generated during LTO

0 commit comments

Comments
 (0)