Skip to content

Commit

Permalink
- fix iconv detection for boost.locale on iOS (bfgroup#83)
Browse files Browse the repository at this point in the history
* - fix iconv detection for boost.locale on iOS
* clang-darwin doesn't need --start-group
* clang-darwin doesn't need -lrt
* Also need appletv to have the same exception. `appletv` is another Xcode clang related platform that would have the same limitations.
  • Loading branch information
SSE4 authored and psandana committed Feb 24, 2022
1 parent 7b382be commit 529ce53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/gcc.jam
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ local rule compile-link-flags ( * )
local bsd = [ MATCH ^(.*bsd)$ : $(all-os) ] ;
threading-flags <target-os>$(bsd) : -pthread ;

local no-threading = android beos haiku sgi darwin vxworks ;
# iOS doesn't need pthread flag according to the https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread.3.html
# The default system libraries include pthread functions. No additional libraries or CFLAGS are necessary to use this API.
local no-threading = android beos haiku sgi darwin vxworks iphone appletv ;
local threading-generic-os = [ set.difference $(all-os) : $(no-threading) $(bsd) windows cygwin solaris qnx ] ;
threading-flags <target-os>$(threading-generic-os) : -pthread : rt ;
}
Expand Down Expand Up @@ -880,7 +882,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND <target-os>cygwin : "-Wl,--out-implib

# default

local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;
local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux iphone appletv ] ;
# Strip the binary when no debugging is needed. We use --strip-all flag
# as opposed to -s since icc (intel's compiler) is generally
# option-compatible with and inherits from the gcc toolset, but does not
Expand Down

0 comments on commit 529ce53

Please sign in to comment.