Skip to content

Commit

Permalink
Bug 756746 - Quote paths in linker scripts, r=glandium
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwu committed May 19, 2012
1 parent 66c59c9 commit d510f25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/expandlibs_exec.py
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion config/tests/unit-expandlibs.py
Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion js/src/config/expandlibs_exec.py
Expand Up @@ -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]
Expand Down

0 comments on commit d510f25

Please sign in to comment.