mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
chore: include d3dcompiler_47.dll in scan folder (#225720)
This commit is contained in:
@@ -26,6 +26,9 @@ const BUILD_TARGETS = [
|
||||
{ platform: 'linux', arch: 'arm64' },
|
||||
];
|
||||
|
||||
// The following files do not have PDBs downloaded for them during the download symbols process.
|
||||
const excludedCheckList = ['d3dcompiler_47.dll'];
|
||||
|
||||
BUILD_TARGETS.forEach(buildTarget => {
|
||||
const dashed = (/** @type {string | null} */ str) => (str ? `-${str}` : ``);
|
||||
const platform = buildTarget.platform;
|
||||
@@ -46,7 +49,6 @@ BUILD_TARGETS.forEach(buildTarget => {
|
||||
if (platform === 'win32') {
|
||||
tasks.push(
|
||||
() => electron.dest(destinationPdb, { ...config, platform, arch: arch === 'armhf' ? 'arm' : arch, pdbs: true }),
|
||||
util.rimraf(path.join(destinationExe, 'd3dcompiler_47.dll')),
|
||||
() => confirmPdbsExist(destinationExe, destinationPdb)
|
||||
);
|
||||
}
|
||||
@@ -110,6 +112,10 @@ function nodeModules(destinationExe, destinationPdb, platform) {
|
||||
|
||||
function confirmPdbsExist(destinationExe, destinationPdb) {
|
||||
readdirSync(destinationExe).forEach(file => {
|
||||
if (excludedCheckList.includes(file)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (file.endsWith('.dll') || file.endsWith('.exe')) {
|
||||
const pdb = `${file}.pdb`;
|
||||
if (!existsSync(path.join(destinationPdb, pdb))) {
|
||||
|
||||
Reference in New Issue
Block a user