libnx icon indicating copy to clipboard operation
libnx copied to clipboard

thread_local crash

Open XITRIX opened this issue 1 year ago • 1 comments

I don't think it's libnx related issue, but I hope someone here can give me any hint about my issue.

I'm in the progress of porting Skia lib to Switch, and I faced the problem of using thread_local there. Any property marked as thread_local will just crash on attempt to access to it. As temporary solution I just removed thread_local from Switch compilation because it looks like Skia mostly works in single thread and do not try to share this property between threads for now, but I would like to know, if it's an compiler issue, or Switch does not support it, or I just missed some flag to compiler?

I'll appreciate for any help, Thanks in advance

XITRIX avatar Jan 21 '25 10:01 XITRIX

We're not psychic. What's Skia lib, where can it be found, how are you compiling it (exact command line for whatever build system is in use etc).

WinterMute avatar Jan 21 '25 13:01 WinterMute