From 47111a0b57c3e5f5cca7d91035c010d9260760b1 Mon Sep 17 00:00:00 2001 From: Allison Piper Date: Thu, 30 Jan 2025 18:28:45 +0000 Subject: [PATCH] Ensure that the TBB path is set correctly. TBB_ROOT was not defined when configuring the PATH. --- windows/image/installers/install-tbb.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/windows/image/installers/install-tbb.ps1 b/windows/image/installers/install-tbb.ps1 index 2794ed10..3dc631fa 100644 --- a/windows/image/installers/install-tbb.ps1 +++ b/windows/image/installers/install-tbb.ps1 @@ -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"