mirror of
https://github.com/apache/nuttx.git
synced 2025-12-13 23:17:11 +08:00
build depend:Revert Make.dep intermediate ddc file
Revert "Parallelize depend file generation"
This reverts commit d5b6ec450f.
parallel depend ddc does not significantly speed up compilation,
intermediately generated .ddc files can cause problems if compilation is interrupted unexpectedly
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -221,25 +221,6 @@ else
|
||||
MKDEP ?= $(TOPDIR)$(DELIM)tools$(DELIM)mkdeps$(HOSTEXEEXT)
|
||||
endif
|
||||
|
||||
# Per-file dependency generation rules
|
||||
|
||||
OBJPATH ?= .
|
||||
|
||||
%.dds: %.S
|
||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
||||
|
||||
%.ddc: %.c
|
||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $< > $@
|
||||
|
||||
%.ddp: %.cpp
|
||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
||||
|
||||
%.ddx: %.cxx
|
||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CXX)" -- $(CXXFLAGS) -- $< > $@
|
||||
|
||||
%.ddh: %.c
|
||||
$(Q) $(MKDEP) --obj-path $(OBJPATH) --obj-suffix $(OBJEXT) $(DEPPATH) "$(CC)" -- $(HOSTCFLAGS) -- $< > $@
|
||||
|
||||
# INCDIR - Convert a list of directory paths to a list of compiler include
|
||||
# directories
|
||||
# Example: CFFLAGS += ${shell $(INCDIR) [options] "compiler" "dir1" "dir2" "dir2" ...}
|
||||
|
||||
Reference in New Issue
Block a user