equal
deleted
inserted
replaced
954 self.logger.write("Compiling IEC Program in to C code...\n") |
954 self.logger.write("Compiling IEC Program in to C code...\n") |
955 # Now compile IEC code into many C files |
955 # Now compile IEC code into many C files |
956 # files are listed to stdout, and errors to stderr. |
956 # files are listed to stdout, and errors to stderr. |
957 status, result, err_result = ProcessLogger( |
957 status, result, err_result = ProcessLogger( |
958 self.logger, |
958 self.logger, |
959 "\"%s\" -f \"%s\" -I \"%s\" \"%s\""%( |
959 "\"%s\" -f -I \"%s\" -T \"%s\" \"%s\""%( |
960 iec2c_path, |
960 iec2c_path, |
961 self._getIECcodepath(), |
961 ieclib_path, |
962 ieclib_path, buildpath), |
962 buildpath, |
|
963 self._getIECcodepath()), |
963 no_stdout=True).spin() |
964 no_stdout=True).spin() |
964 if status: |
965 if status: |
965 # Failed ! |
966 # Failed ! |
966 self.logger.write_error("Error : IEC to C compiler returned %d\n"%status) |
967 self.logger.write_error("Error : IEC to C compiler returned %d\n"%status) |
967 return False |
968 return False |