Skip to content

Commit 042a23f

Browse files
committed
Add hctbuild.cmd parameter to specify the nuget config file (#7785)
This change allows us to control which nuget.config is used. This is to allow internal builds to override the nuget feed that's used. (cherry picked from commit 06dcb00)
1 parent 5c326e7 commit 042a23f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/hct/hctbuild.cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ set INSTALL_DIR=
4747
set DEFAULT_EXEC_ADAPTER=-DTAEF_EXEC_ADAPTER=
4848
set LIT_ARGS=
4949
set FRESH=
50+
set NUGET_WARP_EXTRA_ARGS=
5051

5152
:parse_args
5253
if "%1"=="" (
@@ -213,6 +214,11 @@ if "%1"=="-fresh" (
213214
set FRESH="--fresh"
214215
shift /1 & goto :parse_args
215216
)
217+
if "%1"=="-nuget-config" (
218+
set NUGET_WARP_EXTRA_ARGS="-Config %~2"
219+
shift /1
220+
shift /1 & goto :parse_args
221+
)
216222

217223

218224
rem Begin SPIRV change
@@ -354,6 +360,8 @@ set CMAKE_OPTS=%CMAKE_OPTS% -DCLANG_CL:BOOL=OFF
354360
set CMAKE_OPTS=%CMAKE_OPTS% -DCMAKE_SYSTEM_VERSION=%DXC_CMAKE_SYSTEM_VERSION%
355361
set CMAKE_OPTS=%CMAKE_OPTS% -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
356362

363+
set CMAKE_OPTS=%CMAKE_OPTS% -DNUGET_WARP_EXTRA_ARGS=%NUGET_WARP_EXTRA_ARGS%
364+
357365
if "%LIT_ARGS%" NEQ "" (
358366
set CMAKE_OPTS=%CMAKE_OPTS% -DLLVM_LIT_ARGS="%LIT_ARGS%"
359367
)

0 commit comments

Comments
 (0)