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

Refactor target clauses for system implementations #11813

Merged

Conversation

straight-shoota
Copy link
Member

This is a tiny refactor to adjust the require clauses for system implementations to have a branch for each platform and raise if none matches. This is already used in all other similar places.

Cherry-picked from #10870 because it's a unrelated change to adding WebAssembly.

src/crystal/system/env.cr Outdated Show resolved Hide resolved
src/crystal/system/time.cr Outdated Show resolved Hide resolved
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
@straight-shoota straight-shoota added this to the 1.4.0 milestone Feb 9, 2022
@straight-shoota straight-shoota merged commit 65f20ff into crystal-lang:master Feb 11, 2022
@straight-shoota straight-shoota deleted the refactor/target-flags branch February 11, 2022 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants