Skip to content

[Concurrency] Don't use getenv() unless SWIFT_STDLIB_HAS_ENVIRON is set. #42110

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
Apr 1, 2022

Conversation

al45tair
Copy link
Contributor

We don't necessarily have environment variables, which is why we have SWIFT_STDLIB_HAS_ENVIRON. Calling getenv() outside of a check of this means Concurrency won't work in environments where getenv() cannot be used.

rdar://91050064

We don't necessarily have environment variables, which is why we have
SWIFT_STDLIB_HAS_ENVIRON.  Calling getenv() outside of a check of this
means Concurrency won't work in environments where getenv() cannot
be used.

rdar://91050064
@al45tair al45tair requested review from mikeash and kubamracek March 31, 2022 15:06
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

1 similar comment
@al45tair
Copy link
Contributor Author

al45tair commented Apr 1, 2022

@swift-ci Please smoke test

@al45tair al45tair merged commit d0e7398 into swiftlang:main Apr 1, 2022
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.

3 participants