Closed ibara closed 9 years ago
Merged!
I'm curious - is this a temporary fix until someone removes the need to include pthread when your program doesn't need the functions it provides, or will pthread always be needed?
We could have a 'threads' version block that you could disable via a compiler option. But there'd need to be some actual care given to that, if it's just one more broken thing we throw in without support, it's not very useful.
Even the most simple helloworld.ooc program needs -pthread in order to compile and run. Currently, running
rock -v -gc=off helloworld
will result in a linker error: undefined references for some pthread functions. So always use -pthread.