Opened 6 years ago

Last modified 3 years ago

#57109 closed defect

cquery @20180718 shared_timed_mutex introduced in macOS 10.12 — at Version 2

Reported by: rurban (Reini Urban) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: cquery

Description (last modified by rurban (Reini Urban))

cquery-20180718_0.darwin_15 fails to build on darwin 15.6:

cquery-20180718/src/import_manager.h:30:8: error: 'shared_timed_mutex' is unavailable: introduced in macOS 10.12
:info:build   std::shared_timed_mutex dependency_mutex_;
:info:build        ^
:info:build /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/..
/include/c++/v1/shared_mutex:202:58: note: 'shared_timed_mutex' has been explicitly marked unavailable here

needs to be worked around somehow for older darwin's. attached patch fixe it for me. See also https://github.com/cquery-project/cquery/issues/733 (without fix yet, but they kept working on it)

Change History (3)

comment:1 Changed 6 years ago by rurban (Reini Urban)

Changed 6 years ago by rurban (Reini Urban)

Attachment: shared_timed_mutex.patch added

comment:2 Changed 6 years ago by rurban (Reini Urban)

Description: modified (diff)
Note: See TracTickets for help on using tickets.