@@ -56,6 +56,7 @@ set FIXED_LOC=
5656set VENDOR =
5757set SPIRV = OFF
5858set SPV_TEST = OFF
59+ set DXILCONV = ON
5960
6061if " %1 " == " -s" (
6162 set DO_BUILD = 0
@@ -159,6 +160,11 @@ if "%1"=="-no-parallel" (
159160 shift /1
160161)
161162
163+ if " %1 " == " -no-dxilconv" (
164+ set DXILCONV = OFF
165+ shift /1
166+ )
167+
162168rem If only VS 2017 is available, pick that by default.
163169if " %BUILD_VS_VER% " == " 2015" (
164170 reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\vs\Servicing\14.0\devenv /v Install /reg:32 1 > nul 2 > nul
@@ -212,6 +218,7 @@ set CMAKE_OPTS=%CMAKE_OPTS% -DHLSL_ENABLE_ANALYZE:BOOL=%ANALYZE%
212218set CMAKE_OPTS = %CMAKE_OPTS% -DHLSL_OFFICIAL_BUILD:BOOL=%OFFICIAL%
213219set CMAKE_OPTS = %CMAKE_OPTS% -DHLSL_ENABLE_FIXED_VER:BOOL=%FIXED_VER%
214220set CMAKE_OPTS = %CMAKE_OPTS% -DHLSL_ENABLE_FIXED_VER:BOOL=%FIXED_VER% -DHLSL_FIXED_VERSION_LOCATION:STRING=%FIXED_LOC%
221+ set CMAKE_OPTS = %CMAKE_OPTS% -DHLSL_BUILD_DXILCONV:BOOL=%DXILCONV%
215222set CMAKE_OPTS = %CMAKE_OPTS% -DCLANG_VENDOR:STRING=%VENDOR%
216223set CMAKE_OPTS = %CMAKE_OPTS% -DENABLE_SPIRV_CODEGEN:BOOL=%SPIRV%
217224set CMAKE_OPTS = %CMAKE_OPTS% -DSPIRV_BUILD_TESTS:BOOL=%SPV_TEST%
@@ -289,7 +296,7 @@ exit /b 0
289296echo Builds HLSL solutions and the product and test binaries for the current
290297echo flavor and architecture.
291298echo .
292- echo hctbuild [-s or -b] [-alldef] [-analyze] [-official] [-fv] [-fvloc < path> ] [-rel] [-arm or -arm64 or -x86 or -x64] [-Release] [-Debug] [-vs2015] [-ninja] [-tblgen path] [-dont-speak] [-parallel]
299+ echo hctbuild [-s or -b] [-alldef] [-analyze] [-official] [-fv] [-fvloc < path> ] [-rel] [-arm or -arm64 or -x86 or -x64] [-Release] [-Debug] [-vs2015] [-ninja] [-tblgen path] [-dont-speak] [-no- parallel] [-no-dxilconv ]
293300echo .
294301echo -s creates the projects only, without building
295302echo -b builds the existing project
@@ -302,6 +309,7 @@ echo -fvloc <path> directory with the version.inc file
302309echo -rel builds release rather than debug
303310echo -dont-speak disables audible build confirmation
304311echo -no-parallel disables parallel build
312+ echo -no-dxilconv disables build of DXBC to DXIL converter and tools
305313echo .
306314echo current BUILD_ARCH=%BUILD_ARCH% . Override with:
307315echo -x86 targets an x86 build (aka. Win32)
0 commit comments