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

Added support for D2X debugging #62

Merged

Conversation

AjayBrahmakshatriya
Copy link
Collaborator

@AjayBrahmakshatriya AjayBrahmakshatriya commented Jan 3, 2024

This commit adds a new build flag - ENABLE_D2X. This flag should only be enabled when the submodule deps/d2x is fetched. Enabling this flag builds BuildIt with D2X support. D2X is automatically built and linked.

Just enabling this feature does not change any behavior. To actually use these features, the user can set the enable_d2x member in builder_context and use the c_code_generator::generate_code_d2x function instead of the usual c_code_generator::generate_code function. Both functions have the same interface. This will dump all the D2X debugging information with the generated code.

Generated code must be linked with the D2X runtime libraries.

@AjayBrahmakshatriya AjayBrahmakshatriya merged commit 40013df into BuildIt-lang:master Jan 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant