Changed build_tc.py's incremental mode to make sure make is always
called. make can detect if nothing needs to be done for the compile and
just takes a few seconds.
PRESUBMIT=passed
R=llozano,bjanakiraman
DELTA=3 (0 added, 1 deleted, 2 changed)
OCL=60298-p2
RCL=60312-p2
RDATE=2012/05/07 17:09:14
P4 change: 42676274
diff --git a/v14/build_tc.py b/v14/build_tc.py
index fa2beda..03b6373 100755
--- a/v14/build_tc.py
+++ b/v14/build_tc.py
@@ -56,8 +56,7 @@
self.UninstallTool()
self.MoveMaskFile()
self.MountSources(False)
- if not self._incremental:
- self.RemoveCompiledFile()
+ self.RemoveCompiledFile()
self.BuildTool()
finally:
self.UnMoveMaskFile()
@@ -68,7 +67,7 @@
"var/tmp/portage/cross-%s" % self._ctarget,
"%s-9999" % self._name,
".compiled")
- command = "rm -rf %s" % compiled_file
+ command = "rm -f %s" % compiled_file
self._ce.RunCommand(command)
def MountSources(self, unmount_source):