Skip to content

Commit

Permalink
[boost-container] Add boost-static-assert dep
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed May 18, 2024
1 parent 7eb700c commit 05e9cf0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 2 deletions.
18 changes: 18 additions & 0 deletions ports/boost-container/emscripten-pthread.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01e97c5..30af76f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,13 @@ add_library(boost_container
src/synchronized_pool_resource.cpp
src/unsynchronized_pool_resource.cpp
)
+if(EMSCRIPTEN)
+ # BOOST_HAS_PTHREADS is required to avoid windows declarations in
+ # libs/container/include/boost/container/detail/thread_mutex.hpp
+ # This should come from include/boost/config/detail/posix_features.hpp,
+ # but ... https://github.com/microsoft/vcpkg/issues/38469
+ target_compile_options(boost_container PUBLIC -pthread)
+endif()

add_library(Boost::container ALIAS boost_container)

12 changes: 12 additions & 0 deletions ports/boost-container/no-static-assert.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78acbe2..01e97c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,6 @@ target_link_libraries(boost_container
Boost::config
Boost::intrusive
Boost::move
- Boost::static_assert
)

target_compile_definitions(boost_container
3 changes: 2 additions & 1 deletion ports/boost-container/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-container",
"version": "1.85.0",
"port-version": 1,
"description": "Boost container module",
"homepage": "https://github.com/boostorg/container",
"homepage": "https://www.boost.org/libs/container",
"license": "BSL-1.0",
"dependencies": [
{
Expand Down
1 change: 1 addition & 0 deletions scripts/boost/generate-ports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $semverVersion = ($version -replace "(\d+(\.\d+){1,3}).*", "`$1")
# Clear this array when moving to a new boost version
$defaultPortVersion = 0
$portVersions = @{
'boost-container' = 1;
}

function Get-PortVersion {
Expand Down
5 changes: 5 additions & 0 deletions versions/b-/boost-container.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "66fab56c944311d758da01419f79c3253e7dfda1",
"version": "1.85.0",
"port-version": 1
},
{
"git-tree": "1261ff9673aab60f032284e51aa4400a1fa88a6a",
"version": "1.85.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@
},
"boost-container": {
"baseline": "1.85.0",
"port-version": 0
"port-version": 1
},
"boost-container-hash": {
"baseline": "1.85.0",
Expand Down

0 comments on commit 05e9cf0

Please sign in to comment.