Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for architecture registration #2252

Merged

Conversation

oleavr
Copy link
Contributor

@oleavr oleavr commented Jan 18, 2024

To support building a static Capstone with many supported architectures and only paying for the ones needed in each consumer. In this way they won't have to build multiple copies of Capstone to minimize footprint.

@github-actions github-actions bot added the CS-core-files auto-sync label Jan 18, 2024
Copy link
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

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

The CAPSTONE_USE_ARCH_REGISTRATION is missing in the cmake build (docs and CMakeLists.txt). So cmake will complain:

cmake .. -DCAPSTONE_USE_ARCH_REGISTRATION=1
Enabling CAPSTONE_ARM_SUPPORT
Enabling CAPSTONE_AARCH64_SUPPORT
...
Enabling CAPSTONE_TRICORE_SUPPORT
Enabling CAPSTONE_ALPHA_SUPPORT
-- Configuring done (0.0s)
-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CAPSTONE_USE_ARCH_REGISTRATION


-- Build files have been written to: /home/user/repos/capstone/build

Please update is as well. You can ignore the make build. It's considered deprecated.

cs.c Show resolved Hide resolved
To support building a static Capstone with many supported architectures
and only paying for the ones needed in each consumer. In this way they
won't have to build multiple copies of Capstone to minimize footprint.
@oleavr oleavr force-pushed the feature/explicit-arch-registration branch from 4fab200 to 2663e20 Compare January 19, 2024 13:36
@oleavr
Copy link
Contributor Author

oleavr commented Jan 19, 2024

@Rot127 Thanks for reviewing! The review feedback should now be addressed.

@kabeor
Copy link
Member

kabeor commented Jan 20, 2024

Cool, merged.

@kabeor kabeor merged commit 009ead2 into capstone-engine:next Jan 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CS-core-files auto-sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants