Fix bug when linking failed and trying to rebuild
authorLaurent Bessard
Tue, 09 Apr 2013 18:17:10 +0200
changeset 1023 93022adef055
parent 1022 ec30c12b1d67
child 1024 626de4ff4bdc
Fix bug when linking failed and trying to rebuild
targets/toolchain_gcc.py
--- a/targets/toolchain_gcc.py	Tue Apr 09 18:16:04 2013 +0200
+++ b/targets/toolchain_gcc.py	Tue Apr 09 18:17:10 2013 +0200
@@ -98,7 +98,7 @@
         ######### GENERATE OBJECT FILES ########################################
         obns = []
         objs = []
-        relink = False
+        relink = self.GetBinaryCode() is None
         for Location, CFilesAndCFLAGS, DoCalls in self.CTRInstance.LocationCFilesAndCFLAGS:
             if CFilesAndCFLAGS:
                 if Location :