Kaydet (Commit) b1ad78d2 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

Do not build c/cxx .d file when --disable-dependency-tracking

--disable-dependency-tracking is for build environment that
always do make clea + make to build
These do not need the dependency information and therefore
can save the expenses of tracking them.
the gc c/cxx compile command was using -MMD etc.. systematically.
this patch take gb_FULLDEPS value into account to avoid
-MMD when not necessary

Change-Id: Ic5c3c368c81da2b260a4fcdf03fdc01b45a9cb1f
üst 78b61b4d
...@@ -20,6 +20,14 @@ ...@@ -20,6 +20,14 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
ifeq ($(gb_FULLDEPS),$(true))
gb_ccx_dep_generation_options=-MMD -MT $(1) -MP -MF $(4)_
gb_cxx_dep_copy=&& mv $(4)_ $(4)
else
gb_ccx_dep_generation_options=
gb_cxx_dep_copy=
endif
# AsmObject class # AsmObject class
gb_AsmObject_get_source = $(1)/$(2).s gb_AsmObject_get_source = $(1)/$(2).s
...@@ -54,11 +62,11 @@ $(call gb_Helper_abbreviate_dirs,\ ...@@ -54,11 +62,11 @@ $(call gb_Helper_abbreviate_dirs,\
$(T_CFLAGS) \ $(T_CFLAGS) \
-c $(3) \ -c $(3) \
-o $(1) \ -o $(1) \
-MMD -MT $(1) \ $(gb_ccx_dep_generation_options) \
-MP -MF $(4)_ \
-I$(dir $(3)) \ -I$(dir $(3)) \
$(INCLUDE) && \ $(INCLUDE) \
mv $(4)_ $(4)) $(gb_ccx_dep_copy) \
)
endef endef
# CxxObject class # CxxObject class
...@@ -75,11 +83,11 @@ $(call gb_Helper_abbreviate_dirs,\ ...@@ -75,11 +83,11 @@ $(call gb_Helper_abbreviate_dirs,\
$(T_CXXFLAGS) \ $(T_CXXFLAGS) \
-c $(3) \ -c $(3) \
-o $(1) \ -o $(1) \
-MMD -MT $(1) \ $(gb_ccx_dep_generation_options) \
-MP -MF $(4)_ \
-I$(dir $(3)) \ -I$(dir $(3)) \
$(INCLUDE_STL) $(INCLUDE) && \ $(INCLUDE_STL) $(INCLUDE) \
mv $(4)_ $(4)) $(gb_ccx_dep_copy) \
)
endef endef
define gb_SrsPartTarget__command_dep define gb_SrsPartTarget__command_dep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment