Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 756746 - Quote paths in linker scripts, r=glandium

  • Loading branch information...
commit 6eddff83dd319af1eda1c4471af803e24c130a31 1 parent e70492a
@michaelwu michaelwu authored
View
2  config/expandlibs_exec.py
@@ -125,7 +125,7 @@ def makelist(self):
if not len(objs): return
fd, tmp = tempfile.mkstemp(suffix=".list",dir=os.curdir)
if conf.EXPAND_LIBS_LIST_STYLE == "linkerscript":
- content = ["INPUT(%s)\n" % obj for obj in objs]
+ content = ['INPUT("%s")\n' % obj for obj in objs]
ref = tmp
elif conf.EXPAND_LIBS_LIST_STYLE == "list":
content = ["%s\n" % obj for obj in objs]
View
2  config/tests/unit-expandlibs.py
@@ -237,7 +237,7 @@ def test_makelist(self):
if config.EXPAND_LIBS_LIST_STYLE == "linkerscript":
self.assertNotEqual(args[3][0], '@')
filename = args[3]
- content = ["INPUT(%s)" % relativize(f) for f in objs]
+ content = ['INPUT("%s")' % relativize(f) for f in objs]
with open(filename, 'r') as f:
self.assertEqual([l.strip() for l in f.readlines() if len(l.strip())], content)
elif config.EXPAND_LIBS_LIST_STYLE == "list":
View
2  js/src/config/expandlibs_exec.py
@@ -125,7 +125,7 @@ def makelist(self):
if not len(objs): return
fd, tmp = tempfile.mkstemp(suffix=".list",dir=os.curdir)
if conf.EXPAND_LIBS_LIST_STYLE == "linkerscript":
- content = ["INPUT(%s)\n" % obj for obj in objs]
+ content = ['INPUT("%s")\n' % obj for obj in objs]
ref = tmp
elif conf.EXPAND_LIBS_LIST_STYLE == "list":
content = ["%s\n" % obj for obj in objs]
Please sign in to comment.
Something went wrong with that request. Please try again.