ooc-lang / rock

:ocean: self-hosted ooc compiler that generates c99
http://ooc-lang.org/
MIT License
403 stars 40 forks source link

Always use pthreads #919

Closed ibara closed 9 years ago

ibara commented 9 years ago

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.

fasterthanlime commented 9 years ago

Merged!

davidhesselbom commented 9 years ago

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?

fasterthanlime commented 9 years ago

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.