Skip to content

Don't build cstool arch specific details printing, if not requested.#2888

Open
Rot127 wants to merge 3 commits into
capstone-engine:nextfrom
Rot127:cstool-build
Open

Don't build cstool arch specific details printing, if not requested.#2888
Rot127 wants to merge 3 commits into
capstone-engine:nextfrom
Rot127:cstool-build

Conversation

@Rot127

@Rot127 Rot127 commented Mar 27, 2026

Copy link
Copy Markdown
Collaborator

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

This limits the output of cstool to the archs enabled during the build.
This will on the one hand not compile unnecessary detail printing code. On the other also limit the help output to the architectures which are enabled.
It also fixes a build issue reported in #2887

TODO:

  • Check printed output again in the CI before merge.

Test plan

...

Closing issues

closes #2887

@github-actions github-actions Bot added the CS-core-files auto-sync label Mar 27, 2026
@github-actions github-actions Bot added the Github-files Github related files label Apr 7, 2026
@Rot127 Rot127 force-pushed the cstool-build branch 10 times, most recently from 2cb39f9 to b578610 Compare July 6, 2026 16:06
@Rot127 Rot127 requested review from jiegec, kabeor and wargio July 7, 2026 11:39
@Rot127 Rot127 marked this pull request as ready for review July 7, 2026 11:39

@wargio wargio 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.

shouldn't you change also the output of cstool -h ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CS-core-files auto-sync Github-files Github related files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabling CAPSTONE_RISCV_SUPPORT causes a crash during the build

2 participants