提交 f3b3316a 编写于 作者: K Kai Liu

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
上级 22e1b04d
......@@ -369,7 +369,7 @@ endif
# the correct path prefix.
%.d: %.cc
$(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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册