2 Mar
2015
2 Mar
'15
6:10 p.m.
AMDG On 01/19/2015 09:34 AM, Peter Dimov wrote:
Is it possible to add, for example, <threadapi>pthread to a project's requirements, but only for Cygwin?
This works:
<toolset>gcc,<target-os>windows:<threadapi>pthread
but it also applies to MinGW.
This only applies to MinGW:
toolset-gcc:flavormingw:<threadapi>pthread
but Cygwin has no <flavor>.
This:
<toolset>gcc,<target-os>windows:<threadapi>pthread toolset-gcc:flavormingw:-<threadapi>pthread
doesn't work.
There are references to <target-os>cygwin in gcc.jam, but <target-os> is actually 'windows'.
The correct <target-os> for Cygwin should be cygwin, not windows. The problem is that target-os is not auto-detected and defaults to being the same as host-os. In Christ, Steven Watanabe