Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4558079bcd45a645f9bd6a02d86bd103fa90f569
      
https://github.com/WebKit/WebKit/commit/4558079bcd45a645f9bd6a02d86bd103fa90f569
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M Source/bmalloc/bmalloc/BCompiler.h
    M Source/bmalloc/libpas/src/libpas/pas_platform.h

  Log Message:
  -----------
  [TSan][CMake] Swift modules that import bmalloc fail to build
<https://bugs.webkit.org/show_bug.cgi?id=326161>
<rdar://problem/189051076>

Reviewed by David Kilzer.

Swift's Clang importer doesn't get -fsanitize=thread, so the build defines 
__SANITIZE_THREAD__ for it instead. bmalloc
and libpas only checked __has_feature(thread_sanitizer), so the importer turned 
on MTE code that the C++ TSan build
leaves off and failed on missing declarations. Check the __SANITIZE_*__ macros 
too, as WTF's Compiler.h does.

* Source/bmalloc/bmalloc/BCompiler.h:
* Source/bmalloc/libpas/src/libpas/pas_platform.h:

Canonical link: https://commits.webkit.org/322627@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to