darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.45k stars 445 forks source link

prefix attribute must be followed by an interface or protocol (solved) #955

Closed agavrel closed 3 years ago

agavrel commented 3 years ago

I had this error while building darling

The fix was to remove from .mm files:

__attribute__((objc_nonlazy_class))

with, from within darling/src/external/objc4/runtime:

sed -i.bak '/__attribute__((objc_nonlazy_class))/d' *.mm
facekapow commented 3 years ago

See #964; you're probably using an old version of Clang