Closed
Bug 1854305
Opened 2 years ago
Closed 2 years ago
[clang 8] error: invalid capability name 'main thread'; capability name must be 'mutex' or 'role' [-Werror,-Wthread-safety-attributes]
Categories
(Core :: MFBT, defect)
Core
MFBT
Tracking
()
RESOLVED
FIXED
119 Branch
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
[task 2023-09-21T04:42:28.422Z] 04:42:28 ERROR - /builds/worker/workspace/obj-build/dist/include/MainThreadUtils.h:41:22: error: invalid capability name 'main thread'; capability name must be 'mutex' or 'role' [-Werror,-Wthread-safety-attributes]
[task 2023-09-21T04:42:28.422Z] 04:42:28 INFO - class MOZ_CAPABILITY("main thread") MainThreadCapability final {};
[task 2023-09-21T04:42:28.422Z] 04:42:28 INFO - ^
[task 2023-09-21T04:42:28.422Z] 04:42:28 INFO - 1 error generated.
| Assignee | ||
Comment 1•2 years ago
|
||
Arbitrary capability names weren't allowed until clang 11, and while we
could probably make things somehow work with earlier versions of clang,
it's not that interesting, as long as we keep the thread safety analysis
running with newer versions of clang on our CI (which we obviously do).
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/9ee2919433c1
Don't enable thread safety annotations before clang 11. r=nika
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•