[cfe-users] What clang option is equivalent to gcc -c -MMD x.cpp?

Hans Wennborg hans at chromium.org
Mon Aug 4 15:55:21 PDT 2014

On Mon, Aug 4, 2014 at 2:25 PM, Larry Evans <cppljevans at suddenlink.net> wrote:
> When I compile with g++ -MMD x.cpp, the x.o is accompanied by and x.d
> containing the dependencies.

  clang++ -MMD x.cpp

should work in the same way. Does that not work for you? Which version
of Clang are you using, and do you get any error messages?

 - Hans

More information about the cfe-users mailing list