--- a/targets/toolchain_gcc.py Thu Feb 16 22:54:44 2012 +0100
+++ b/targets/toolchain_gcc.py Sun Feb 19 02:20:24 2012 +0100
@@ -106,32 +106,35 @@
self.PluginsRootInstance.logger.write(_("PLC :\n"))
for CFile, CFLAGS in CFilesAndCFLAGS:
- bn = os.path.basename(CFile)
- obn = os.path.splitext(bn)[0]+".o"
- objectfilename = os.path.splitext(CFile)[0]+".o"
+ if CFile.endswith(".c"): + bn = os.path.basename(CFile) + obn = os.path.splitext(bn)[0]+".o" + objectfilename = os.path.splitext(CFile)[0]+".o" - match = self.check_and_update_hash_and_deps(bn)
- self.PluginsRootInstance.logger.write(" [pass] "+bn+" -> "+obn+"\n")
- self.PluginsRootInstance.logger.write(" [CC] "+bn+" -> "+obn+"\n")
+ match = self.check_and_update_hash_and_deps(bn) - status, result, err_result = ProcessLogger(
- self.PluginsRootInstance.logger,
- "\"%s\" -c \"%s\" -o \"%s\" %s %s"%
- (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
+ self.PluginsRootInstance.logger.write(" [pass] "+bn+" -> "+obn+"\n")
- self.PluginsRootInstance.logger.write_error(_("C compilation of %s failed.\n")%bn)
+ self.PluginsRootInstance.logger.write(" [CC] "+bn+" -> "+obn+"\n") + status, result, err_result = ProcessLogger( + self.PluginsRootInstance.logger, + "\"%s\" -c \"%s\" -o \"%s\" %s %s"% + (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS)
- objs.append(objectfilename)
+ self.PluginsRootInstance.logger.write_error(_("C compilation of %s failed.\n")%bn) + objs.append(objectfilename) + elif CFile.endswith(".o"): + obns.append(os.path.basename(CFile)) ######### GENERATE library FILE ########################################
# Link all the object files into one binary file