2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Introduce 'android' as value of 'target-os' feature.

At present, all it does is skips linking to the rt/pthread libraries.
This commit is contained in:
Vladimir Prus
2014-01-22 11:30:33 +04:00
parent 5858d2166f
commit 31cfa99489
2 changed files with 2 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ import convert ;
import generate ;
.os-names = aix bsd cygwin darwin freebsd hpux iphone linux netbsd openbsd osf
.os-names = aix android bsd cygwin darwin freebsd hpux iphone linux netbsd openbsd osf
qnx qnxnto sgi solaris unix unixware windows
elf # Not actually an OS -- used for targeting bare metal where object
# format is ELF. This catches both -elf and -eabi gcc targets and well

View File

@@ -1025,6 +1025,7 @@ rule setup-threading ( targets * : sources * : properties * )
switch $(target)
{
case android: # No threading options, everything is in already.
case windows : option = -mthreads ;
case cygwin : option = -mthreads ;
case solaris : option = -pthreads ; libs = rt ;