Skip to content

Avoid creating \dev\null file when building on Windows #1697

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 5 commits into from
Jun 1, 2023
Merged

Avoid creating \dev\null file when building on Windows #1697

merged 5 commits into from
Jun 1, 2023

Conversation

tristanlabelle
Copy link
Contributor

@tristanlabelle tristanlabelle commented May 24, 2023

/dev/null has no special meaning on Windows and writing to it will create and write to a file under that path in the working directory's drive. After a swift toolchain build, s:\dev\null is created. Pass in a real file path instead.

@tristanlabelle tristanlabelle requested a review from ahoppen as a code owner May 24, 2023 14:20
@tristanlabelle tristanlabelle changed the title Avoid creating \dev\null file on Windows Avoid creating \dev\null file when building on Windows May 24, 2023
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

compnerd commented Jun 1, 2023

@swift-ci please test

@compnerd
Copy link
Member

compnerd commented Jun 1, 2023

@swift-ci please test

@compnerd
Copy link
Member

compnerd commented Jun 1, 2023

@swift-ci please test Windows platform

@compnerd compnerd enabled auto-merge (squash) June 1, 2023 19:55
@compnerd compnerd merged commit c1d0739 into swiftlang:main Jun 1, 2023
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.

4 participants