Skip to content

Commit

Permalink
address issue in boost.asio building on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 14, 2023
1 parent 5ce4c51 commit d8b0007
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ jobs:
- name: build library
run: |
b2 -l400 cxxstd=14 darwin-ios darwin-ios_sim address-model=64 link=static
b2 -l400 cxxstd=14 target-os=iphone darwin-ios darwin-ios_sim address-model=64 link=static
8 changes: 8 additions & 0 deletions Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ rule linking ( properties * )
result += <framework>CoreFoundation <framework>SystemConfiguration ;
}

if <target-os>iphone in $(properties)
{
# boost.asio seems to mis-detect iOS as supporting the __thread
# keyword, resulting in the error:
# error: thread-local storage is not supported for the current target
result += <define>BOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION ;
}

if <toolset>gcc in $(properties)
&& <target-os>linux in $(properties)
&& ( <asserts>on in $(properties)
Expand Down

0 comments on commit d8b0007

Please sign in to comment.