8000 Make conditionals that test emscripten_build constexpr by elliottt · Pull Request #8859 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make conditionals that test emscripten_build constexpr #8859

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

Merged
merged 1 commit into from
May 9, 2025

Conversation

elliottt
Copy link
Collaborator
@elliottt elliottt commented May 9, 2025

As sorbet::emscripten_build is defined as a constexpr constant, we can make all conditionals that test it into constexpr conditionals. There aren't many, but it feels worth doing to ensure that we're not accidentally keeping those conditionals in a build.

Motivation

Build config hygiene.

Test plan

Existing tests

@elliottt elliottt marked this pull request as ready for review May 9, 2025 22:38
@elliottt elliottt requested a review from a team as a code owner May 9, 2025 22:38
@elliottt elliottt requested review from neilparikh and removed request for a team May 9, 2025 22:38
@elliottt elliottt merged commit 7d71d1e into master May 9, 2025
14 checks passed
@elliottt elliottt deleted the trevor/emscripten-build-constexpr branch May 9, 2025 23:11
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.

2 participants
0