Skip to content

Commit

Permalink
Bug 1162714 - Don't let YCM generate machc. r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
nwgh committed May 7, 2015
1 parent 19c092a commit ae50f0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
import os
from StringIO import StringIO
import shlex
import sys

old_bytecode = sys.dont_write_bytecode
sys.dont_write_bytecode = True

path = os.path.join(os.path.dirname(__file__), 'mach')

Expand All @@ -15,6 +19,8 @@
path = os.path.join(config.topsrcdir, 'mach')
mach_module = imp.load_module('_mach', open(path), path, ('', 'r', imp.PY_SOURCE))

sys.dont_write_bytecode = old_bytecode

def FlagsForFile(filename):
mach = mach_module.get_mach()
out = StringIO()
Expand Down

0 comments on commit ae50f0f

Please sign in to comment.