Skip to content

feat: Add option to override toolchain on a per target basis - #294

Merged
Szelethus merged 5 commits into
Ericsson:mainfrom
furtib:per-target-toolchain-selection
Aug 25, 2026
Merged

feat: Add option to override toolchain on a per target basis#294
Szelethus merged 5 commits into
Ericsson:mainfrom
furtib:per-target-toolchain-selection

Conversation

@furtib

@furtib furtib commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Why:
Users want the ability to use different versions of CodeChecker (or analyzers) on a per-target basis.

What:

  • Added a codechecker_toolchain parameter to codechecker_test, through which users can override Bazel's toolchain resolution. (Preserves previous behaviour if not specified.)

Addresses:
Fixes: #278

@furtib
furtib requested a review from Szelethus August 17, 2026 11:10
@furtib furtib self-assigned this Aug 17, 2026
@furtib furtib added the enhancement New feature or request label Aug 17, 2026
@furtib furtib changed the title Feat: Add option to override toolchain on a per platform basis Feat: Add option to override toolchain on a per target basis Aug 17, 2026
@furtib
furtib force-pushed the per-target-toolchain-selection branch from 49eeec8 to 8c383e1 Compare August 17, 2026 11:28
Comment thread src/codechecker.bzl Outdated
Comment thread src/codechecker.bzl Outdated
Comment thread src/codechecker.bzl Outdated

@furtib furtib left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the review!

Comment thread src/codechecker.bzl Outdated
Comment thread src/codechecker.bzl Outdated
Comment thread src/codechecker.bzl Outdated
@furtib
furtib force-pushed the per-target-toolchain-selection branch from f4a947e to 0c119c9 Compare August 19, 2026 07:18

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the code's perspective -- should we not bother with a skylib test?

@furtib

furtib commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

see #301 for tests

@furtib
furtib force-pushed the per-target-toolchain-selection branch from 0c119c9 to dd9d8c3 Compare August 24, 2026 12:06
@furtib
furtib force-pushed the per-target-toolchain-selection branch from dd9d8c3 to 715d99c Compare August 24, 2026 12:07
@furtib furtib changed the title Feat: Add option to override toolchain on a per target basis feat: Add option to override toolchain on a per target basis Aug 24, 2026
@furtib
furtib requested a review from Szelethus August 24, 2026 12:09
@furtib furtib changed the title feat: Add option to override toolchain on a per target basis Feat: Add option to override toolchain on a per target basis Aug 24, 2026
@furtib furtib changed the title Feat: Add option to override toolchain on a per target basis feat: Add option to override toolchain on a per target basis Aug 24, 2026
@furtib furtib changed the title feat: Add option to override toolchain on a per target basis [feat]: Add option to override toolchain on a per target basis Aug 24, 2026
@furtib furtib changed the title [feat]: Add option to override toolchain on a per target basis feat: Add option to override toolchain on a per target basis Aug 24, 2026

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on my end. These skylib tests are quite neat.

@Szelethus
Szelethus merged commit e3e3038 into Ericsson:main Aug 25, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Per-target toolchain selection argument

3 participants