summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-04-29 13:53:00 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-04-29 13:54:16 +0200
commit0bd553e8629104fbc37ac574017519b3f3752cb3 (patch)
tree8fb40c1630357e45794c87f908780880beb78b97 /solenv
parent3534e99d18952fc87f98cf60eb7767374a1371c4 (diff)
create dep files in an atomic way
Change-Id: Ia7766ed57ae8c317e1070db4ed1246855cabd960
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_class.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/solenv/gbuild/platform/com_GCC_class.mk b/solenv/gbuild/platform/com_GCC_class.mk
index 80149156ff1c..7848537839eb 100644
--- a/solenv/gbuild/platform/com_GCC_class.mk
+++ b/solenv/gbuild/platform/com_GCC_class.mk
@@ -55,9 +55,10 @@ $(call gb_Helper_abbreviate_dirs,\
-c $(3) \
-o $(1) \
-MMD -MT $(1) \
- -MP -MF $(4) \
+ -MP -MF $(4)_ \
-I$(dir $(3)) \
- $(INCLUDE))
+ $(INCLUDE) && \
+ mv $(4)_ $(4))
endef
# CxxObject class
@@ -75,9 +76,10 @@ $(call gb_Helper_abbreviate_dirs,\
-c $(3) \
-o $(1) \
-MMD -MT $(1) \
- -MP -MF $(4) \
+ -MP -MF $(4)_ \
-I$(dir $(3)) \
- $(INCLUDE_STL) $(INCLUDE))
+ $(INCLUDE_STL) $(INCLUDE) && \
+ mv $(4)_ $(4))
endef
define gb_SrsPartTarget__command_dep