File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ foreach(i RANGE 0 ${loop_end})
179179 set (DXC_PATH ${CMAKE_BINARY_DIR} /tools/clang/test/dxc_releases/${version} /${name} /bin/${TARGET_ARCH} /dxil.dll)
180180
181181 # Create a lit target for this release
182- add_lit_target ("check-clang- ${name} " "Running clang regression tests with ${name} \n "
182+ add_lit_target ("check-${name} " "Running clang regression tests with ${name} \n "
183183 ${CMAKE_CURRENT_SOURCE_DIR}
184184 PARAMS ${CLANG_TEST_PARAMS}
185185 DXC_DXIL_DLL_PATH=${DXC_PATH}
@@ -194,9 +194,6 @@ foreach(i RANGE 0 ${loop_end})
194194 add_custom_target (check-clang )
195195 endif ()
196196
197- # Make check-clang depend on this particular release's tests
198- add_dependencies (check-clang "check-clang-${name} " )
199-
200197 # Hook into check-all
201198 if (WIN32 AND TARGET check-all)
202199 add_dependencies (check-all "check-clang-${name} " )
Original file line number Diff line number Diff line change @@ -891,8 +891,13 @@ int DxcContext::Compile() {
891891 pIncludeHandler,
892892 IID_PPV_ARGS (&pCompileResult)));
893893
894+ // dont validate when validation was disabled, or
895+ // there are compilation errors
896+ HRESULT CompHR;
897+ pCompileResult->GetStatus (&CompHR);
898+
894899 // Then validate
895- if (!m_Opts.DisableValidation ) {
900+ if (!m_Opts.DisableValidation && ! DXC_FAILED (CompHR) ) {
896901
897902 CComPtr<IDxcValidator> pValidator;
898903 IFT (CreateInstance (CLSID_DxcValidator, &pValidator));
@@ -901,9 +906,7 @@ int DxcContext::Compile() {
901906 CComPtr<IDxcOperationResult> pValResult;
902907
903908 IFT (pCompileResult->GetResult (&pProgram));
904- /* if (llvm::getDebugMetadataVersionFromModule(pProgram) != 0) {
905- llvmModuleWithDebugInfo.reset(llvm::CloneModule(inputs.pM.get()));
906- }*/
909+
907910 IFT (pValidator->Validate (pProgram,
908911 DxcValidatorFlags_RootSignatureOnly |
909912 DxcValidatorFlags_InPlaceEdit,
Original file line number Diff line number Diff line change @@ -335,13 +335,13 @@ if "%TEST_USE_LIT%"=="1" (
335335 set RES_CLANG = !ERRORLEVEL!
336336 )
337337 if " !TEST_COMPAT_SUITE! " == " 2021" (
338- cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-clang- dxc_2021_12_08
338+ cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-dxc_2021_12_08
339339 )
340340 if " !TEST_COMPAT_SUITE! " == " 2023" (
341- cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-clang- dxc_2023_08_14
341+ cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-dxc_2023_08_14
342342 )
343343 if " !TEST_COMPAT_SUITE! " == " 2025" (
344- cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-clang- dxc_2025_02_20
344+ cmake --build %HLSL_BLD_DIR% --config %BUILD_CONFIG% --target check-dxc_2025_02_20
345345 )
346346 if " !TEST_EXEC! " == " 1" (
347347 if defined EXEC_ADAPTER (
You can’t perform that action at this time.
0 commit comments