forked from OSchip/llvm-project
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:
parent
0769b2b1f3
commit
f1620efc4a
|
@ -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 $@.$$$$
|
||||
|
||||
|
|
Loading…
Reference in New Issue