Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !327

support for variants that include -check c, allowing for mixes of modules that are compiled with and without type pattern

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sven-Bodo Scholz requested to merge sbs/sac2c:sbs-add-checks-variants-in-sac2crc into develop Jan 08, 2025
  • Overview 0
  • Commits 9
  • Changes 13

the use of -check c adds the target "add_checks" to the specified target. All that this target does it adds the VARIANT "-checks" and it signals to the compiler that -check c actually is turned on. This duplicate notification of "-check c" allows this variant to be specified through the target mechanism, even when not specifying "-check c" explicitly.

This merge request also brings proper (?) support for variants: if a variant is specified, this leads to BOTH, libMOD.so and libTREE.so being built. If a SaC module is being used from a SaC file that uses check c (or the corresponding target:-) the compiler tries to find the matching variant. If that variant does not exist, the compiler issues a warning and tries to fall back to the default variant where is empty. A fallback from the default to any other variant is considered undesireable.

We also add new targets seq_checks and mt_pth_checks and trigger the compilation of the prelude for these variants.

The check flags used for this can be specified through the new resource CHECKFLAGS.

Extending this mechanism for other variants (eg TRACE) should be rather straight forward .....

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sbs-add-checks-variants-in-sac2crc