@dslijepcevic Thanks for the info -- the incorrect logging "Compiler probe command line: "/usr/bin/cc" -g /proj/test2/test file.c -std=gnu11 -Wp,-v -E -dD -x c -m64 /dev/null" helped me figure it out -- the "/proj/test2/test file.c" test should not be there, most likely a bug in the code that removes the -c <arg>. I was able to get the bug repro by deleting the compilerPath from my c_cpp_properties.json, so a potential workaround would be to add that. We should have a fix in our next Insiders release.
Originally posted by @sean-mcmanus in https://github.com/microsoft/vscode-cpptools/issue_comments/710757287