opened
sbc100
username_0
Use `-pthread` compiler flag and associated _REENTRANT macro. NFC.
issue
created
sbc100
username_0
Have not tested this yet.. will rely on CI to test
comment
created
quantum5
username_1
comment
created
sbc100
username_0
As far as I know, this is the way one detects the presence of the `-pthread` flag.   Its defined directly by the compiler (both gcc and clang) when `-pthread` is passed.  

Although to be fair thats the first time I'm seeing that its deprecated.
comment
created
dschuff
username_2
I didn't know that either. AFAIK that's currently the only define that's different between wasm-clang's threaded and non-threaded predefined macros. We may want to consider adding something else if we don't want people depending on _REENTRANT to tell the difference.
comment