theraven added a comment. It sounds as if the bug here is either that the .c files are being treated as c++, or that we're sticking -std=c++{whatever} in CFLAGS as well as CXXFLAGS. This is probably the bug that should be fixed. https://reviews.llvm.org/D25431