2
0
Эх сурвалжийг харах

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.
Chris B 2 жил өмнө
parent
commit
eb1b3ace67

+ 5 - 0
utils/hct/hctbuild.cmd

@@ -206,6 +206,11 @@ if "%1"=="-spirvtest" (
 rem End SPIRV change
 if "%1"=="-ninja" (
   set BUILD_GENERATOR=Ninja
+  set PARALLEL_OPT=
+  shift /1 & goto :parse_args
+)
+if "%1"=="-clang" (
+  set CMAKE_OPTS=%CMAKE_OPTS% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
   shift /1 & goto :parse_args
 )
 if "%1"=="-update-generated-sources" (