Implement getting cmdline of process on macOS as well

This commit is contained in:
Kovid Goyal
2018-07-24 11:07:53 +05:30
parent 5485436ea1
commit 0dd3334811
5 changed files with 165 additions and 26 deletions

View File

@@ -402,7 +402,7 @@ def compile_c_extension(kenv, module, incremental, compilation_database, all_key
def find_c_files():
ans, headers = [], []
d = os.path.join(base, 'kitty')
exclude = {'fontconfig.c', 'freetype.c', 'desktop.c'} if is_macos else {'core_text.m', 'cocoa_window.m'}
exclude = {'fontconfig.c', 'freetype.c', 'desktop.c'} if is_macos else {'core_text.m', 'cocoa_window.m', 'macos_process_info.c'}
for x in os.listdir(d):
ext = os.path.splitext(x)[1]
if ext in ('.c', '.m') and os.path.basename(x) not in exclude: