servo/python/servo
Jonathan Schwender 6ad6542aac
mach: Add TSAN support (#37195)
Add ThreadSanitizer support to mach (`--with-tsan`).

This refactors the current infrastructure to support `--with-asan` to a
more generic `Santiizer`.
If the need for adding multiple sanitizers at once (e.g. address + leak
sanitizer) arises, we can easily change the `SanitizerKind` enum to a
`enum.Flag` instead.

Testing: Manually run `./mach build --with-tsan` and `./mach run
--with-tsan` (on macos) and observe TSAN reporting data races.

Closes: #14869

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2025-06-13 12:26:57 +00:00
..
devtools_tests/sources Devtools: add automated test for Debugger > Sources (#36401) 2025-05-07 10:43:18 +00:00
mutation Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
platform mach: Add TSAN support (#37195) 2025-06-13 12:26:57 +00:00
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap_commands.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
build_commands.py mach: Add TSAN support (#37195) 2025-06-13 12:26:57 +00:00
command_base.py mach: Add TSAN support (#37195) 2025-06-13 12:26:57 +00:00
devenv_commands.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
devtools_tests.py DevTools: Implement support for showing source_content in Debugger > Source panel (#36774) 2025-06-13 09:31:33 +00:00
gstreamer.py mach: Add TSAN support (#37195) 2025-06-13 12:26:57 +00:00
package_commands.py mach: Add TSAN support (#37195) 2025-06-13 12:26:57 +00:00
post_build_commands.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
testing_commands.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
try_parser.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
util.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
visual_studio.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00