

def get_pch_include_args(self, compiler, target):
    args = []
    pchpath = self.get_target_private_dir(target)
    includeargs = compiler.get_include_args(pchpath, False)
    for lang in ['c', 'cpp']:
        p = target.get_pch(lang)
        if (len(p) == 0):
            continue
        if compiler.can_compile(p[(- 1)]):
            header = p[0]
            args += compiler.get_pch_use_args(pchpath, header)
    if (len(args) > 0):
        args = (includeargs + args)
    return args

dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py Backend.get_pch_include_args/original