Skip to content

Commit ba9b25c

Browse files
committed
fix(build): replace boost with backports
Boost v1.87.0 is not currently compatible with WoA, backport the following context: Support building assembly files for mingw-w64 on arm64 with CMake Link: boostorg/context@f82483d uuid: Do not link to libatomic under any Clang/Windows Link: boostorg/uuid@434329f Signed-off-by: Coia Prant <[email protected]>
1 parent ea61996 commit ba9b25c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

cmake/dependencies/Boost_Sunshine.cmake

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ if(NOT Boost_FOUND)
5454

5555
# Limit boost to the required libraries only
5656
set(BOOST_INCLUDE_LIBRARIES ${BOOST_COMPONENTS})
57-
set(BOOST_URL "https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
58-
set(BOOST_HASH "SHA256=7da75f171837577a52bbf217e17f8ea576c7c246e4594d617bfde7fafd408be5")
57+
# set(BOOST_URL "https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
58+
# set(BOOST_HASH "SHA256=7da75f171837577a52bbf217e17f8ea576c7c246e4594d617bfde7fafd408be5")
59+
60+
# Build Windows Arm64 must backport following:
61+
#
62+
# context: Support building assembly files for mingw-w64 on arm64 with CMake
63+
# Link: https://github.com/boostorg/context/commit/f82483d343c6452c62ec89a48d22a3a7e565373d
64+
#
65+
# uuid: Do not link to libatomic under any Clang/Windows
66+
# Link: https://github.com/boostorg/uuid/commit/434329f8dc7fcfb69cd7565ab0318d86772cea39
67+
#
68+
set(BOOST_URL "https://github.com/rbqvq/Sunshine/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz") # cmake-lint: disable=C0301
69+
set(BOOST_HASH "SHA256=7238ae092c7e8aa97fe47321bee4cf6ef059c8001fbde30e3611a856543d605f")
5970

6071
if(CMAKE_VERSION VERSION_LESS "3.24.0")
6172
FetchContent_Declare(

0 commit comments

Comments
 (0)