ci: generate debug symbols on Linux (#18676)

This commit is contained in:
Julien Isorce 2019-11-20 17:21:44 -08:00 committed by Jeremy Apthorp
parent 41f1569c46
commit 92ff39c168
9 changed files with 192 additions and 17 deletions

View file

@ -4,22 +4,11 @@ import argparse
import os
import sys
from lib.config import LINUX_BINARIES
from lib.util import execute, get_out_dir
LINUX_BINARIES_TO_STRIP = [
'electron',
'chrome-sandbox',
'crashpad_handler',
'libffmpeg.so',
'libGLESv2.so',
'libEGL.so',
'swiftshader/libGLESv2.so',
'swiftshader/libEGL.so',
'libvk_swiftshader.so'
]
def strip_binaries(directory, target_cpu):
for binary in LINUX_BINARIES_TO_STRIP:
for binary in LINUX_BINARIES:
binary_path = os.path.join(directory, binary)
if os.path.isfile(binary_path):
strip_binary(binary_path, target_cpu)
@ -37,7 +26,6 @@ def strip_binary(binary_path, target_cpu):
def main():
args = parse_args()
print(args)
if args.file:
strip_binary(args.file, args.target_cpu)
else: