Skip to content

build: disable POSIX mutexes on Windows #111

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 2 commits into from
Sep 8, 2020

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 7, 2020

Conditionalize the define to use POSIX mutexes to macOS and Linux
targets. This would be easier to define as non-POSIX, but the package
description does not have the negative check nor a POSIX check.

This requires bumping the tools version to 5.3 to gain access to
Windows.

Conditionalize the define to use POSIX mutexes to macOS and Linux
targets.  This would be easier to define as non-POSIX, but the package
description does not have the negative check nor a POSIX check.

This requires bumping the tools version to 5.3 to gain access to
Windows.
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

@swift-ci please test

@compnerd compnerd marked this pull request as draft September 7, 2020 17:12
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

This cannot be merged right now, I want to let the test finish before I update it; I just realized that this would cause a problem for older versions of spm, I'll add a workaround.

@compnerd compnerd marked this pull request as ready for review September 7, 2020 18:30
@compnerd
Copy link
Member Author

compnerd commented Sep 7, 2020

Never mind, I didn't use .when(platforms: [.windows]), so this should be fine.

@benlangmuir
Copy link
Contributor

This requires bumping the tools version to 5.3 to gain access to Windows.

We should not do this until 5.3 is released. Now that you're not using .windows, is this still necessary?

@compnerd
Copy link
Member Author

compnerd commented Sep 8, 2020

Ah, right you are. Not using .windows means that we can get away with 5.2!

@benlangmuir
Copy link
Contributor

@swift-ci please test

@benlangmuir benlangmuir merged commit 1f5bbb0 into swiftlang:master Sep 8, 2020
@compnerd compnerd deleted the windows-mutexes branch September 8, 2020 20:49
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