Fix linux builds with debug symbols when there is a space in the path.

This commit is contained in:
Andrés Botero 2024-10-24 20:50:43 -05:00
parent 1015a481ff
commit becf5d7ac3

View file

@ -5,6 +5,6 @@ import os
def make_debug_linuxbsd(target, source, env):
dst = str(target[0])
os.system("objcopy --only-keep-debug {0} {0}.debugsymbols".format(dst))
os.system("strip --strip-debug --strip-unneeded {0}".format(dst))
os.system("objcopy --add-gnu-debuglink={0}.debugsymbols {0}".format(dst))
os.system('objcopy --only-keep-debug "{0}" "{0}.debugsymbols"'.format(dst))
os.system('strip --strip-debug --strip-unneeded "{0}"'.format(dst))
os.system('objcopy --add-gnu-debuglink="{0}.debugsymbols" "{0}"'.format(dst))