mirror of https://github.com/mongodb/mongo
SERVER-102927 [v8.1] Skip pdb copy step in unit test gather script if binary is not an exe (#34144) (#34170)
GitOrigin-RevId: e50191f4ac5ff64806eaa21147bd92ec9f81fc90
This commit is contained in:
parent
5862028715
commit
f62cf87e50
|
|
@ -52,12 +52,14 @@ while read -r core_file; do
|
|||
fi
|
||||
|
||||
# On Windows if a .pdb symbol file exists, include it in the archive.
|
||||
if [[ "$binary_file_location" == *".exe" ]]; then
|
||||
pdb_file=$(echo "$binary_file_location" | sed "s/\.exe/.pdb/")
|
||||
if [ -f "$pdb_file" ]; then
|
||||
new_pdb_file=$unittest_bin_dir/$(echo "$pdb_file" | sed "s/.*\///")
|
||||
echo "PDB Copy $pdb_file to $new_pdb_file"
|
||||
cp "$pdb_file" "$new_pdb_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
# On binutils platforms, if a .debug symbol file exists, include it
|
||||
# in the archive
|
||||
|
|
|
|||
Loading…
Reference in New Issue