Pārlūkot izejas kodu

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

Andrés Botero 11 mēneši atpakaļ
vecāks
revīzija
becf5d7ac3
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  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))