From f73a3aa79309497d9f608ec509ca4dc66b9be20e Mon Sep 17 00:00:00 2001 From: Greg Roth Date: Thu, 14 Sep 2023 05:10:07 -0700 Subject: [PATCH] Require validator ver 1.3 for link without version Require a lesser validator version for linking without version for RunLinkWithTempReg test in order to allow the test to run on older validators. 1.3 is the lowest version that supports libraries Another follow up to #5378 --- tools/clang/unittests/HLSL/LinkerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang/unittests/HLSL/LinkerTest.cpp b/tools/clang/unittests/HLSL/LinkerTest.cpp index f50e96431f..bcbc0eaa17 100644 --- a/tools/clang/unittests/HLSL/LinkerTest.cpp +++ b/tools/clang/unittests/HLSL/LinkerTest.cpp @@ -935,7 +935,7 @@ TEST_F(LinkerTest, RunLinkWithTempReg) { AssembleLib(L"..\\HLSLFileCheck\\dxil\\linker\\TempReg.ll", &pTempRegLib); CComPtr pEntryLib; CompileLib(L"..\\HLSLFileCheck\\dxil\\linker\\use-TempReg.hlsl", &pEntryLib, - {L"-validator-version", L"1.7"}, L"lib_6_3"); + {L"-validator-version", L"1.3"}, L"lib_6_3"); CComPtr pLinker; CreateLinker(&pLinker); LPCWSTR libName = L"entry";