[all-commits] [llvm/llvm-project] f69853: tsan: fix build with COMPILER_RT_TSAN_DEBUG_OUTPUT
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Tue Apr 27 13:39:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f69853ac40ba1b8cd119fc49091cb7216da81b38
https://github.com/llvm/llvm-project/commit/f69853ac40ba1b8cd119fc49091cb7216da81b38
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2021-04-27 (Tue, 27 Apr 2021)
Changed paths:
M compiler-rt/lib/tsan/tests/CMakeLists.txt
Log Message:
-----------
tsan: fix build with COMPILER_RT_TSAN_DEBUG_OUTPUT
COMPILER_RT_TSAN_DEBUG_OUTPUT enables TSAN_COLLECT_STATS,
which changes layout of runtime structs (some structs contain
stats when the option is enabled).
It's not OK to build runtime with the define, but tests without it.
The error is detected by build_consistency_stats/nostats.
Fix this by defining TSAN_COLLECT_STATS for tests to match the runtime.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D101386
More information about the All-commits
mailing list