Skip to content

Commit eb1b3ac

Browse files
authored
Add option for building with clang-cl and ninja (#4807)
This change adds a new `-clang` flag to hctbuild. It also fixes an issue where ninja builds were getting passed the MSBuild parallization option.
1 parent 590d36d commit eb1b3ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

utils/hct/hctbuild.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ if "%1"=="-spirvtest" (
206206
rem End SPIRV change
207207
if "%1"=="-ninja" (
208208
set BUILD_GENERATOR=Ninja
209+
set PARALLEL_OPT=
210+
shift /1 & goto :parse_args
211+
)
212+
if "%1"=="-clang" (
213+
set CMAKE_OPTS=%CMAKE_OPTS% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
209214
shift /1 & goto :parse_args
210215
)
211216
if "%1"=="-update-generated-sources" (

0 commit comments

Comments
 (0)