Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 6e4b223

Browse files
committed
add early exit
Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
1 parent bb9a0f9 commit 6e4b223

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/windows/builder.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,9 @@ function Get-CMakeConfigureArgs {
336336
Write-Status "Found Intel compiler: $($icx.Source)" -Type Info
337337
Write-Status "CMakeLists.txt will configure icx for Windows (MSVC-compatible mode)" -Type Info
338338
} else {
339-
Write-Status "Intel compilers not found in PATH. Make sure oneAPI environment is initialized." -Type Warning
340-
Write-Status "Run: & `"C:\Program Files (x86)\Intel\oneAPI\setvars.bat`"" -Type Warning
339+
Write-Status "Intel compilers not found in PATH. Make sure oneAPI environment is initialized." -Type Error
340+
Write-Status "Run: & `"C:\Program Files (x86)\Intel\oneAPI\setvars.bat`"" -Type Error
341+
throw "Intel compilers (icx) are required for XPU backend but were not found in PATH. Please initialize oneAPI environment."
341342
}
342343
} else {
343344
# Use Visual Studio generator for other backends

0 commit comments

Comments
 (0)