Skip to content
Snippets Groups Projects
Commit 4a97547c authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1293534: Fix .ycm_extra_conf after bug 1195748. r=gps

MozReview-Commit-ID: HwNnOUThxev
parent 569564c2
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,10 @@ sys.dont_write_bytecode = old_bytecode
def FlagsForFile(filename):
mach = mach_module.get_mach()
out = StringIO()
# Mach calls sys.stdout.fileno(), so we need to fake it when capturing it.
# Returning an invalid file descriptor does the trick.
out.fileno = lambda: -1
out.encoding = None
mach.run(['compileflags', filename], stdout=out, stderr=out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment