Notes |
|
|
You should only pass -pthread for C compilers that actually support that
option. The (Mercury) compiler should have enough version information about the
C compiler available in order to determine this. |
|
|
(0000497)
|
wangp
|
2013-02-18 14:36
|
|
I'm thinking we just need to update configure.ac near line 2962 for $host = *linux*. The compilers in use there seem to all support -pthread (gcc, clang, icc, does lcc even work?). |
|
|
|
Older versions of gcc (e.g. 4.2 etc) only seem to support it for things
like IA64, PowerPC and SPARC. (Presumably, it has no effect on other
things?) So, it should be ok to enable it for all versions of GCC.
It should be ok to always enable it for clang.
AFAIK, we don't support icc.
If some uses lcc and it doesn't work then we'll do something about that.
(Otherwise, I don't care about it for the time being.)
Yes, you need to pass -pthread for all compilation steps since on some
platforms it apparently affects the preprocessor as well. |
|
|
(0000499)
|
wangp
|
2013-02-20 11:58
|
|
Fixed the underlying issue. |
|