|
@@ -1189,7 +1189,7 @@ void WriteDxCompilerVersionInfo(llvm::raw_ostream &OS,
|
|
CComPtr<IDxcVersionInfo2> VerInfo2;
|
|
CComPtr<IDxcVersionInfo2> VerInfo2;
|
|
#endif // SUPPORT_QUERY_GIT_COMMIT_INFO
|
|
#endif // SUPPORT_QUERY_GIT_COMMIT_INFO
|
|
|
|
|
|
- const char *dllName = !ExternalLib ? "dxcompiler.dll" : ExternalLib;
|
|
|
|
|
|
+ const char *dllName = !ExternalLib ? kDxCompilerLib : ExternalLib;
|
|
std::string compilerName(dllName);
|
|
std::string compilerName(dllName);
|
|
if (ExternalFn)
|
|
if (ExternalFn)
|
|
compilerName = compilerName + "!" + ExternalFn;
|
|
compilerName = compilerName + "!" + ExternalFn;
|
|
@@ -1244,17 +1244,17 @@ void WriteDXILVersionInfo(llvm::raw_ostream &OS,
|
|
UINT32 validatorMajor, validatorMinor = 0;
|
|
UINT32 validatorMajor, validatorMinor = 0;
|
|
VerInfo->GetVersion(&validatorMajor, &validatorMinor);
|
|
VerInfo->GetVersion(&validatorMajor, &validatorMinor);
|
|
OS << "; "
|
|
OS << "; "
|
|
- << "dxil.dll"
|
|
|
|
|
|
+ << kDxilLib
|
|
<< ": " << validatorMajor << "." << validatorMinor;
|
|
<< ": " << validatorMajor << "." << validatorMinor;
|
|
|
|
|
|
}
|
|
}
|
|
// dxil.dll 1.0 did not support IdxcVersionInfo
|
|
// dxil.dll 1.0 did not support IdxcVersionInfo
|
|
else {
|
|
else {
|
|
OS << "; "
|
|
OS << "; "
|
|
- << "dxil.dll: " << 1 << "." << 0;
|
|
|
|
|
|
+ << kDxilLib << ": " << 1 << "." << 0;
|
|
}
|
|
}
|
|
unsigned int version[4];
|
|
unsigned int version[4];
|
|
- if (GetDLLFileVersionInfo("dxil.dll", version)) {
|
|
|
|
|
|
+ if (GetDLLFileVersionInfo(kDxilLib, version)) {
|
|
OS << "(" << version[0] << "." << version[1] << "." << version[2] << "."
|
|
OS << "(" << version[0] << "." << version[1] << "." << version[2] << "."
|
|
<< version[3] << ")";
|
|
<< version[3] << ")";
|
|
}
|
|
}
|
|
@@ -1272,7 +1272,7 @@ void DxcContext::GetCompilerVersionInfo(llvm::raw_string_ostream &OS) {
|
|
|
|
|
|
// Print validator if exists
|
|
// Print validator if exists
|
|
DxcDllSupport DxilSupport;
|
|
DxcDllSupport DxilSupport;
|
|
- DxilSupport.InitializeForDll(L"dxil.dll", "DxcCreateInstance");
|
|
|
|
|
|
+ DxilSupport.InitializeForDll(kDxilLib, "DxcCreateInstance");
|
|
WriteDXILVersionInfo(OS, DxilSupport);
|
|
WriteDXILVersionInfo(OS, DxilSupport);
|
|
}
|
|
}
|
|
|
|
|