Browse Source

Merge pull request #98506 from 0xafbf/build-linux-with-spaces-in-path

Fix linux builds with separate debug symbols file when there is a space in the path.
Thaddeus Crews 8 months ago
parent
commit
63af934d74
1 changed files with 3 additions and 3 deletions
  1. 3 3
      platform/linuxbsd/platform_linuxbsd_builders.py

+ 3 - 3
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))