mitaki28 / vscode-clang

Completion and Diagnostic for C/C++/Objective-C using Clang
MIT License
128 stars 24 forks source link

Support of clang in WSL #75

Open Apodead opened 5 years ago

Apodead commented 5 years ago

When I set "clang.executable" to "wsl clang", it doesn't work. Finally, I found that's the result: child_process.execFile(file[, args][, options][, callback]) All args should put in args, so I set "clang.executable" to "wsl", and add a line args.push("clang"); between line 24 & 25 in configuration.js, and then all work well. I think it's necessary to add support of wsl, as it's much easier to install and update clang on wsl rather than windows.