def captureCompile(self, x):
    command = x[0]
    x = x[1:]
    includes = [i for i in x if i.startswith('-I')]
    x = [i for i in x if (not i.startswith('-I'))]
    i0 = None
    i1 = None
    for (i, v) in enumerate(x):
        if (v == '-c'):
            i1 = i
        elif (v == '-o'):
            i0 = i
    pre = set(x[:i1])
    post = x[(i0 + 2):]
    self.compile_command = command
    self.compile_pre = pre
    self.compile_post = post
    self.includes = includes
    self.sources.append(x[(i1 + 1)])
def captureCompile(self, x):
    command = x[0]
    x = x[1:]
    includes = [i for i in x if i.startswith('-I')]
    x = [i for i in x if (not i.startswith('-I'))]
    i0 = None
    i1 = None
    for (i, v) in enumerate(x):
        if (v == '-c'):
            i1 = i
        elif (v == '-o'):
            i0 = i
    pre = set(x[:i1])
    post = x[(i0 + 2):]
    self.compile_command = command
    self.compile_pre = pre
    self.compile_post = post
    self.includes = includes
    self.sources.append(x[(i1 + 1)])