Closed LunaTheFoxgirl closed 8 months ago
"lflags": [
"-framework", "Foundation",
"-framework", "AppKit",
"-framework", "Metal",
"-lObjC",
"-all_load"
Those are usually some of the required linker flags for using that.
@LunaTheFoxgirl I don't know if I really should put them under this lib, but yeah you could give me your thoughts
Also, if you wish to contribute, do send me your small hello world project :) It would be cool having a hello world here
"lflags": [ "-framework", "Foundation", "-framework", "AppKit", "-framework", "Metal", "-lObjC", "-all_load"
Those are usually some of the required linker flags for using that.
@LunaTheFoxgirl I don't know if I really should put them under this lib, but yeah you could give me your thoughts
This still fails on my M3 Max macbook pro. According to someone on twitter, _objc_msgSend_stret is simply not a thing on ARM versions of macOS, and as such _objc_msgSend should be called instead.
Okay I'll send the fix. I'll trust since I don't have an ARM to test
@LunaTheFoxgirl Updated to use objc_msgSend instead on ARM and AArch64
That fixed it
Commit b6f8d3ea3854a679f1893f93bbadc20ce0624b64 also fixed the problem about missing linker flags
When compiling the following small example, linking to SDL2 and d-metal-binding, a linker error is thrown that _objc_msgSend_stret is undefined.
Relevant output from dub