[M3commit] [modula3/cm3] d2bd85: More graceful and consistent handling of failures ...

Rodney Bates rodney.m.bates at acm.org
Fri Aug 28 19:04:49 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/modula3/cm3
  Commit: d2bd85d34a9514bd758ba16a31a4dc90371bda29
      https://github.com/modula3/cm3/commit/d2bd85d34a9514bd758ba16a31a4dc90371bda29
  Author: Rodney Bates <rodney.m.bates at acm.org>
  Date:   2015-08-28 (Fri, 28 Aug 2015)

  Changed paths:
    M m3-sys/cm3/src/Builder.m3

  Log Message:
  -----------
  More graceful and consistent handling of failures and their leftover files.

Consistently do:
  If a compilation phase fails, remove its output file,
    but only if -keep was not specified.
  If a compilation phase fails, don't run later phases.

Also, delete some redundant file remove actions in PushOneM3 that are
already done in the Run* procedure.  Some duplicate remove cases remain
when a failing phase is not the final phase, thus its output file
is also a temp file.  It is easier to leave this alone, as the Run*
procedures are also called from other places besides PushOneM3,
if a compilation starts with other than Modula-3 code.

And a small off-by-one bugfix in an assertion.

 Changes to be committed:
	modified:   Builder.m3


  Commit: f29ee554a48e05c85ff778a4fa4dfd1e15e97d4c
      https://github.com/modula3/cm3/commit/f29ee554a48e05c85ff778a4fa4dfd1e15e97d4c
  Author: Rodney Bates <rodney.m.bates at acm.org>
  Date:   2015-08-28 (Fri, 28 Aug 2015)

  Changed paths:
    M m3-sys/cminstall/src/config-no-install/Unix.common

  Log Message:
  -----------
  Adapt to invoke m3llvm with its new command-line options.

 Changes to be committed:

	modified:   Unix.common


Compare: https://github.com/modula3/cm3/compare/0f6c86ef2c53...f29ee554a48e


More information about the M3commit mailing list