Skip to content

[test] Invert stdlib_dir conditional sense. #33065

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
Jul 23, 2020

Conversation

3405691582
Copy link
Member

In #32903, a substitution pseudovariable was introduced to refer to the
path containing Swift.swiftmodule. Since builds on Linux put this file
in a path with a subdirectory named after the architecture name -- and
presumably builds on mac OS do not, a conditional was required to
distinguish these two cases.

However, builds on OpenBSD for example also put Swift.swiftmodule in a
similar subdirectory like Linux. Thus, invert the sense of this
conditional: if mac OS, refer to the path without architecture name,
otherwise in all other cases (and therefore all other platforms), refer
to the architecture name subdirectory.

@3405691582
Copy link
Member Author

cc @artemcm

In swiftlang#32903, a substitution pseudovariable was introduced to refer to the
path containing Swift.swiftmodule. Since builds on Linux put this file
in a path with a subdirectory named after the architecture name -- and
presumably builds on mac OS do not, a conditional was required to
distinguish these two cases.

However, builds on OpenBSD for example also put Swift.swiftmodule in a
similar subdirectory like Linux. Thus, invert the sense of this
conditional to encompass both Linux, OpenBSD, and make mac OS the
specific case, which it is here.
@3405691582 3405691582 force-pushed the StdlibModule_NotJustLinux branch from e99e046 to a86a540 Compare July 23, 2020 13:21
@CodaFi
Copy link
Contributor

CodaFi commented Jul 23, 2020

Makes sense to me

@swift-ci smoke test

@artemcm artemcm self-requested a review July 23, 2020 17:10
Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thank you.

@artemcm
Copy link
Contributor

artemcm commented Jul 23, 2020

@swift-ci Please test Windows platform

@CodaFi
Copy link
Contributor

CodaFi commented Jul 23, 2020

Windows CI ran out of disk space. ⛵️

@CodaFi CodaFi merged commit 9f4a653 into swiftlang:master Jul 23, 2020
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