Skip to content

Commit

Permalink
Ensure that the TBB path is set correctly.
Browse files Browse the repository at this point in the history
TBB_ROOT was not defined when configuring the PATH.
  • Loading branch information
alliepiper committed Jan 30, 2025
1 parent 33d8c70 commit 47111a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions windows/image/installers/install-tbb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ Expand-Archive .\tbb.zip
Remove-Item .\tbb.zip

$cwd = Get-Location
$LOCAL_TBB_ROOT = "$cwd\tbb\oneapi-tbb-$TBB_VERSION"

. "$PSScriptRoot/envvars.ps1"

Set-MachineEnvironmentVariable -Append -Variable "PATH" -Value "$ENV:TBB_ROOT\redist\intel64\vc14\"
Set-MachineEnvironmentVariable -Variable "TBB_ROOT" -Value "$cwd\tbb\oneapi-tbb-$TBB_VERSION"
Set-MachineEnvironmentVariable -Append -Variable "PATH" -Value "$LOCAL_TBB_ROOT\redist\intel64\vc14\"
Set-MachineEnvironmentVariable -Variable "TBB_ROOT" -Value "$LOCAL_TBB_ROOT"

0 comments on commit 47111a0

Please sign in to comment.