Use the correct compiler to compute dependencies.

This uses $(CXX) instead of $(CC) to generate the .d files for tests built
with Makefiles.

llvm-svn: 187426
This commit is contained in:
Stefanus Du Toit 2013-07-30 17:33:30 +00:00
parent 0769b2b1f3
commit f1620efc4a
1 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ endif
%.d: %.cpp
@set -e; rm -f $@; \
$(CC) -M $(CXXFLAGS) $< > $@.$$$$; \
$(CXX) -M $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
@ -338,7 +338,7 @@ endif
%.d: %.mm
@set -e; rm -f $@; \
$(CC) -M $(CXXFLAGS) $< > $@.$$$$; \
$(CXX) -M $(CXXFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$