Skip to content

Add external feature injection to GCC toolchain (like toolchains_llvm extra_known_features) #45

@RSingh1511

Description

@RSingh1511

Feature Request / Modification Description

score_cpp_policies defines sanitizer configurations as cc_feature targets (asan_ubsan_lsan_link, tsan_link). These can currently only be injected into the LLVM toolchain via extra_known_features (toolchains_llvm PR #678).

We need the same mechanism for the S-CORE GCC toolchain so both toolchains consume sanitizer features from a single source.

Proposed change:

Add extra_known_features (or equivalent) to score_bazel_cpp_toolchains
Replace the existing built-in asan/lsan/tsan/ubsan features by pulling them from score_cpp_policies

References:
eclipse-score/score_cpp_policies#1
eclipse-score/communication#182
bazel-contrib/toolchains_llvm#678

Expected Changes ot work products

  • Requirements
  • Architecture
  • Safety Analysis
  • Security Analysis
  • Detailed Design
  • Implementation and Testing
  • all

Impact analysis

Build tooling change only. No impact on production code, safety analysis,
or security. Consuming modules (communication, logging) will use a single
sanitizer configuration instead of toolchain-specific ones.

Safety or Security relevance

  • none
  • Safety relevant
  • Security relevant

Expected required ASIL classification

QM

Expected Implementation Version (Release)

1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    action configNew action config requestfeatureNew feature requestmodule dependency updateAdd or update MODULE.bazel file with new dependency versionp3Medium/Low - handle it within normal processrepo configImprovements or additions to repository configurationtemplateAdd or update template toolchain configurations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions