[compiler-rt] [tsan] Clang format a few files (PR #114725)
Julian Nagele via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 02:40:56 PST 2024
juliannagele wrote:
Unfortunately this seems to break building compiler-rt on mac os:
```
/Users/jnagele/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp:199:24: error: use of undeclared identifier 'OSSpinLockLock'
199 | TSAN_INTERCEPTOR(void, OSSpinLockLock, volatile OSSpinLock *lock) {
| ^
/Users/jnagele/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp:209:24: error: use of undeclared identifier 'OSSpinLockTry'
209 | TSAN_INTERCEPTOR(bool, OSSpinLockTry, volatile OSSpinLock *lock) {
...
```
I think the problem is the include reordering, afaict `<libkern/OSAtomic.h>` has to be **after** `"tsan_spinlock_defs_mac.h"`.
https://github.com/llvm/llvm-project/pull/114725
More information about the llvm-commits
mailing list