Fix a sed command issue that cannot generated *.d files
Summary: The original sed command is not recognized by mac's sed, which generates ".d-e" extension instead of ".d" Test Plan: make clean && make -j32
This commit is contained in:
parent
22e1b04deb
commit
f3b3316a07
2
Makefile
2
Makefile
@ -369,7 +369,7 @@ endif
|
|||||||
# the correct path prefix.
|
# the correct path prefix.
|
||||||
%.d: %.cc
|
%.d: %.cc
|
||||||
$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) -MM $< -o $@
|
$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) -MM $< -o $@
|
||||||
@sed -i -e 's|.*:|$*.o:|' $@
|
@sed -i -e 's/.*:/$*.o:/' $@
|
||||||
|
|
||||||
DEPFILES = $(filter-out util/build_version.d,$(SOURCES:.cc=.d))
|
DEPFILES = $(filter-out util/build_version.d,$(SOURCES:.cc=.d))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user