Opened 3 years ago

Closed 3 years ago

#326 closed enhancement (duplicate)

New way to designate recompile-only files in an mbuild build directory

Reported by: Gary Dixon Owned by: Eric Swenson
Priority: major Milestone:
Component: Tools Version: MR12.8
Keywords: Cc:

Description

When changing an include file, it can sometimes become difficult to distinguish between file groups in the build directory:

  • original content files that have actually been modified
  • source files which are present only to trigger a recompile of that source to pick up changes to an include segment. The source file itself remains unmodified.

Presence of such unmodified source in build directory can therefore have ambiguous meaning to the developer, and perhaps to the auditor. Are such files:

  • Remnants of a source file that was investigated for a change, but determined that no change was needed (and no recompile of the object was needed, either). Its presence in build directory would then be a developer oversight.
  • Recompile-only source file that are present in build directory only to trigger compiling its object component, and binding/install of bound_object segment or unbound segment. These unmodified sources tend to clutter up actual changes being made in other sources, etc.

To distinguish between these two cases, the recompile-only segment could appear in the build directory as a link, with its link target being the actual unmodified source file in a “recompile” subdirectory below the build directory.

This seems like a reasonable approach, but doesn’t work well with current mbuild. mbuild intentionally ignores links in the build directory, because such links are usually links to test programs or test scripts or other bound segment versions needed to test out the changes being developed in that build directory.

That is, mbuild considers any links as irrelevant to the changes being developed in the build directory (unless they are links to include files, which the compilers would chase through if a source in the build directory references that include seg name).

mbuild should be enhanced to support the strategy above for designating recompile-only source files in the build directory.

Change History (1)

comment:1 by Gary Dixon, 3 years ago

Resolution: duplicate
Status: newclosed

Ticket #329 duplicates this enhancement request, but gives more details about the scope of the enhancement and possible suggestions for its implementation. Therefore, this Ticket 326 will be closed in favor of that duplicate Ticket #329.

Note: See TracTickets for help on using tickets.