Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit ffee30b

Browse files
Fix Win32 debug symbol extraction under MSVS
1 parent 97c8581 commit ffee30b

2 files changed

Lines changed: 29 additions & 3 deletions

File tree

config/debug_syms.gypi

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,37 @@
5757
# MSVS generates the debug databases automatically; we just need to copy them
5858
'variables':
5959
{
60+
'command':
61+
[
62+
'<@(perl)',
63+
'>(DEPTH)/tools/windows_debug_syms.pl',
64+
'<@(debug_syms_inputs)',
65+
],
66+
6067
'debug_syms_outputs':
6168
[
62-
'>!@(["<@(perl)", "tools/windows_debug_syms.pl", \'>@(debug_syms_inputs)\'])',
69+
'>!@(<(command))',
6370
],
6471
},
72+
73+
'actions':
74+
[
75+
{
76+
'action_name': 'windows_debug_syms',
77+
'message': 'Extracting debug symbols',
78+
79+
'inputs': [ '>@(debug_syms_inputs)', ],
80+
'outputs': [ '>@(debug_syms_outputs)', ],
81+
82+
# Dummy action
83+
# This action is needed so that dependencies work correctly
84+
'action':
85+
[
86+
'echo',
87+
'Nothing to be done',
88+
],
89+
},
90+
],
6591
},
6692
],
6793
[

tools/windows_debug_syms.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Replace the .exe suffix for each executable with .pdb
44
for (@ARGV)
55
{
6-
s/\.exe$/\.pdb/;
6+
s/\.(exe|dll)/\.pdb/g;
77
}
88

9-
print join("\n", @ARGV);
9+
print join("\n", @ARGV);

0 commit comments

Comments
 (0)