Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit a17b6ab

Browse files
authored
Merge pull request #1214 from microsoft/jandupej/newboost
Add support for Boost 1.83
2 parents 4e3a21f + 0fa934e commit a17b6ab

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ different versioning scheme, following the Haskell community's
4545
runtime if custom allocators for containers are used. Newer MSVC versions and
4646
other compilers are not affected, neither are Release builds with MSVC 14.0. This
4747
can be worked around by using newer MSVC version or building in Release configuration.
48+
* Added support for Boost 1.83.
4849

4950
### C# ###
5051

examples/cpp/core/multiprecision/multiprecision.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <bond/stream/output_buffer.h>
55

66
#include <boost/multiprecision/miller_rabin.hpp>
7+
#include <boost/random.hpp>
78

89
using namespace examples::multiprecision;
910

examples/cpp/core/multiprecision/multiprecision.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace bond
7575
// Bond expects that blob with default value is empty
7676
return 0;
7777
else
78-
return num.backend().size() * sizeof(limb_type);
78+
return static_cast<uint32_t>(num.backend().size() * sizeof(limb_type));
7979
}
8080

8181

tools/ci-scripts/linux/image-builder/build_boosts.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eux
44

5-
BOOST_VERSIONS=(1.61.0 1.62.0 1.63.0 1.64.0 1.65.1 1.66.0 1.67.0)
5+
BOOST_VERSIONS=(1.61.0 1.62.0 1.63.0 1.64.0 1.65.1 1.66.0 1.67.0 1.83.0)
66
BOOST_LIBRARIES="chrono,date_time,python,system,test,thread"
77

88
BUILD_ROOT=/tmp/boosts

tools/ci-scripts/windows/Get-BoostLocation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ param
2222
[string]
2323
$Version,
2424

25-
[ValidateSet('12.0', '14.0', '14.1', '14.2')]
25+
[ValidateSet('12.0', '14.0', '14.1', '14.2', '14.3')]
2626
[string]
2727
$VcToolsetVer
2828
)

tools/ci-scripts/windows/Install-Boost.ps1

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ param
2828
[string]
2929
$Version,
3030

31-
[ValidateSet('12.0', '14.0', '14.1', '14.2')]
31+
[ValidateSet('12.0', '14.0', '14.1', '14.2', '14.3')]
3232
[string]
3333
$VcToolsetVer,
3434

@@ -123,13 +123,26 @@ function Install-BoostComponent([string]$Component)
123123
-InstallDir $workDir `
124124
-PackageVersion $Version
125125

126-
Move-Item `
127-
-Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-32', 'lib', '*')) `
128-
-Destination $lib32Dir
129-
130-
Move-Item `
131-
-Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-64', 'lib', '*')) `
132-
-Destination $lib64Dir
126+
if ($Version -gt 1.66)
127+
{
128+
$sourceFolder = ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native'))
129+
$itemsToMove32 = Get-ChildItem -Path $sourceFolder | Where-Object { $_.Name -like "*x32*" }
130+
$itemsToMove64 = Get-ChildItem -Path $sourceFolder | Where-Object { $_.Name -like "*x64*" }
131+
132+
$itemsToMove32 | ForEach-Object { Move-Item -Path $_.FullName -Destination $lib32Dir }
133+
$itemsToMove64 | ForEach-Object { Move-Item -Path $_.FullName -Destination $lib64Dir }
134+
135+
}
136+
else
137+
{
138+
Move-Item `
139+
-Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-64', 'lib', '*')) `
140+
-Destination $lib64Dir
141+
142+
Move-Item `
143+
-Path ([System.IO.Path]::Combine($workDir, $packageId, 'lib', 'native', 'address-model-32', 'lib', '*')) `
144+
-Destination $lib32Dir
145+
}
133146
}
134147
}
135148

0 commit comments

Comments
 (0)