diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-05 14:13:14 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-05 14:13:26 -0500 |
commit | b1ad78d25c298e4f9b24ef7a761c9bba1f34c2ed (patch) | |
tree | c9db31031b0d94fb97a9a333079bbd472dbc6724 /solenv | |
parent | 78b61b4d944db7f00093d7ee250d234694f1d5b5 (diff) |
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
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_class.mk | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/solenv/gbuild/platform/com_GCC_class.mk b/solenv/gbuild/platform/com_GCC_class.mk index b864ba411a23..478d5fd79b53 100644 --- a/solenv/gbuild/platform/com_GCC_class.mk +++ b/solenv/gbuild/platform/com_GCC_class.mk @@ -20,6 +20,14 @@ # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # 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 gb_AsmObject_get_source = $(1)/$(2).s @@ -54,11 +62,11 @@ $(call gb_Helper_abbreviate_dirs,\ $(T_CFLAGS) \ -c $(3) \ -o $(1) \ - -MMD -MT $(1) \ - -MP -MF $(4)_ \ + $(gb_ccx_dep_generation_options) \ -I$(dir $(3)) \ - $(INCLUDE) && \ - mv $(4)_ $(4)) + $(INCLUDE) \ + $(gb_ccx_dep_copy) \ + ) endef # CxxObject class @@ -75,11 +83,11 @@ $(call gb_Helper_abbreviate_dirs,\ $(T_CXXFLAGS) \ -c $(3) \ -o $(1) \ - -MMD -MT $(1) \ - -MP -MF $(4)_ \ + $(gb_ccx_dep_generation_options) \ -I$(dir $(3)) \ - $(INCLUDE_STL) $(INCLUDE) && \ - mv $(4)_ $(4)) + $(INCLUDE_STL) $(INCLUDE) \ + $(gb_ccx_dep_copy) \ + ) endef define gb_SrsPartTarget__command_dep |