зеркало из https://github.com/electron/electron.git
win: Do not generate symbols for static libraries and strip .pdb in symbol name.
This commit is contained in:
Родитель
0d77ba5222
Коммит
30be4a847f
|
@ -79,7 +79,7 @@ def GenerateSymbols(options, binaries):
|
|||
output_path = os.path.join(options.symbols_dir, module_line.group(2),
|
||||
module_line.group(1))
|
||||
mkdir_p(output_path)
|
||||
symbol_file = "%s.sym" % module_line.group(2)
|
||||
symbol_file = "%s.sym" % module_line.group(2)[:-4] # strip .pdb
|
||||
f = open(os.path.join(output_path, symbol_file), 'w')
|
||||
f.write(syms)
|
||||
f.close()
|
||||
|
@ -123,7 +123,8 @@ def main():
|
|||
|
||||
pdbs = []
|
||||
for directory in directories:
|
||||
pdbs += glob.glob(os.path.join(directory, '*.pdb'))
|
||||
pdbs += glob.glob(os.path.join(directory, '*.exe.pdb'))
|
||||
pdbs += glob.glob(os.path.join(directory, '*.dll.pdb'))
|
||||
|
||||
RegisterRequiredDll();
|
||||
GenerateSymbols(options, pdbs)
|
||||
|
|
Загрузка…
Ссылка в новой задаче