[K/N] Fix building mimalloc with TSAN

This commit is contained in:
Elena Lepilkina
2021-12-09 11:26:26 +03:00
committed by Space
parent 0e6762acc3
commit 611c402e59
2 changed files with 15 additions and 4 deletions
+1
View File
@@ -77,6 +77,7 @@ bitcode {
compilerArgs.addAll(listOf("-DKONAN_MI_MALLOC=1", "-Wno-unknown-pragmas", "-ftls-model=initial-exec",
"-Wno-unused-function", "-Wno-error=atomic-alignment",
"-Wno-unused-parameter" /* for windows 32*/))
extraSanitizerArgs[SanitizerKind.THREAD] = listOf("-DMI_TSAN=1")
headersDirs = files("$srcRoot/c/include")
onlyIf { targetSupportsMimallocAllocator(target) }