Skip to content

Commit

Permalink
Windows SDK/WDK detection: ARM64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pal1000 committed Dec 19, 2024
1 parent e483daa commit 8467164
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion buildscript/modules/dxil.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@setlocal ENABLEDELAYEDEXPANSION
@set dxilloc=null
@if EXIST "%devroot%\dxc\bin\%abi%\dxil.dll" set dxilloc="%devroot%\dxc\bin\%abi%\dxil.dll"
@IF %abi%==arm64 if EXIST "%devroot%\dxc\bin\arm64\dxil.dll" set dxilloc="%devroot%\dxc\bin\arm64\dxil.dll"
@IF %dxilloc%==null for /f delims^=^ eol^= %%a in ('@call "%devroot%\%projectname%\buildscript\modules\winsdkloc.cmd"') do @IF EXIST "%%a" for /f delims^=^ eol^= %%b in ('dir /b /s "%%a\bin\dxil.dll" 2^>^&1') do @if EXIST "%%b" (
@set dxilwinsdk="%%~b"
@IF "!dxilwinsdk:~-13,3!"=="%abi%" set dxilloc="%%~b"
Expand Down
6 changes: 3 additions & 3 deletions buildscript/modules/winsdkloc.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@setlocal
@set winsdk=null
@IF /I NOT %PROCESSOR_ARCHITECTURE%==AMD64 IF EXIST "%ProgramFiles%\Windows Kits\10\Redist" set winsdk=%ProgramFiles%\Windows Kits\10
@IF /I %PROCESSOR_ARCHITECTURE%==AMD64 IF EXIST "%ProgramFiles% (x86)\Windows Kits\10\Redist" set winsdk=%ProgramFiles% (x86)\Windows Kits\10
@echo %winsdk%
@IF EXIST "%ProgramFiles%\Windows Kits\10\Redist" set winsdk=%ProgramFiles%\Windows Kits\10
@IF "%winsdk%"=="null" IF EXIST "%ProgramFiles% (x86)\Windows Kits\10\Redist" set winsdk=%ProgramFiles% (x86)\Windows Kits\10
@echo %winsdk%
1 change: 1 addition & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Build script
- ARM64: Get MSVC build envvironment to initialize;
- MSVC/MsBuild: Fix missing cases of ARM64 handling in solution setup;
- Windows SDK/WDK detection: ARM64 support.
- MSVC/MsBuild: Debug build support;
- Retry build: Fix retry loop exit on successful build;
- Retry build: Use it for dependencies build too.
Expand Down

0 comments on commit 8467164

Please sign in to comment.