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

Simplify library usage #551

Merged
merged 3 commits into from
Nov 11, 2023
Merged

Simplify library usage #551

merged 3 commits into from
Nov 11, 2023

Conversation

Vexu
Copy link
Owner

@Vexu Vexu commented Nov 11, 2023

  • document functions that may call exit
  • add initDefault helpers to Compilation and Preprocessor
  • add preprocessSources helper to process sources into a parsable result
  • adjust API for moving from one step of the pipeline to the next
  • only exit from invokeLinker if fast_exit is set
  • make fast_exit a parameter of Driver.main
  • report fatal error when linker invocation fails
  • move @This() to always be before first field
  • add helper for rendering Ir to a unique Object

Closes #365

Vexu added 3 commits November 11, 2023 11:00
I implemented this a year ago but was blocked by compiler bugs.
* document functions that may call `exit`
* add `initDefault` helpers to Compilation and Preprocessor
* add `preprocessSources` helper to process sources into a parsable result
* adjust API for moving from one step of the pipeline to the next
* only exit from `invokeLinker` if `fast_exit` is set
* make `fast_exit` a parameter of `Driver.main`
* report fatal error when linker invocation fails
* move `@This()` to always be before first field
* add helper for rendering Ir to a unique Object
@Vexu Vexu merged commit 8bf0756 into master Nov 11, 2023
3 checks passed
@Vexu Vexu deleted the lib branch November 11, 2023 15:31
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.

Simplify library usage
1 participant