From becf5d7ac3f28e96cbb3ae83db72083707a80ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Botero?= <0xafbf@gmail.com> Date: Thu, 24 Oct 2024 20:50:43 -0500 Subject: [PATCH] Fix linux builds with debug symbols when there is a space in the path. --- platform/linuxbsd/platform_linuxbsd_builders.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linuxbsd/platform_linuxbsd_builders.py b/platform/linuxbsd/platform_linuxbsd_builders.py index 46fa1947e87..1298a416e0c 100644 --- a/platform/linuxbsd/platform_linuxbsd_builders.py +++ b/platform/linuxbsd/platform_linuxbsd_builders.py @@ -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))