Skip to content

Commit

Permalink
Add TBB to the windows images. (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper authored May 7, 2024
1 parent 89a96c0 commit 9c11dea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions windows/image/install-tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Push-location "$PSScriptRoot"
./installers/install-cmake.ps1
./installers/install-ninja.ps1
./installers/install-sccache.ps1
./installers/install-tbb.ps1

## Save the current environment without MSVC plugged in
New-Item -ItemType Directory -Path "$HOME" -Name "build-env"
Expand Down
7 changes: 7 additions & 0 deletions windows/image/installers/install-tbb.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$TBB_VERSION = "2021.12.0"
Invoke-WebRequest -Uri "https://github.com/oneapi-src/oneTBB/releases/download/v$TBB_VERSION/oneapi-tbb-$TBB_VERSION-win.zip" -OutFile "./tbb.zip" -UseBasicParsing
Expand-Archive .\tbb.zip
Remove-Item .\tbb.zip

# CMake 3.27 or greater can locate packages from this env var:
$ENV:TBB_ROOT = "$PSScriptRoot\tbb\oneapi-tbb-$TBB_VERSION"

0 comments on commit 9c11dea

Please sign in to comment.