Skip to content

Workspace: assume that the user is always correct #2858

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
Aug 17, 2020

Conversation

compnerd
Copy link
Member

When the user specifies the Swift executable via SWIFT_EXEC in the
environment, assume that the value is supposed to be used. This changes
the order in which the Swift compiler is evaluated as being present.
This can avoid an unnecessary lookup for the executable in the case that
it is specified by the user.

When the user specifies the Swift executable via `SWIFT_EXEC` in the
environment, assume that the value is supposed to be used.  This changes
the order in which the Swift compiler is evaluated as being present.
This can avoid an unnecessary lookup for the executable in the case that
it is specified by the user.
@compnerd
Copy link
Member Author

CC: @tomerd @neonichu @abertelrud

@compnerd
Copy link
Member Author

@swift-ci please test

@tomerd
Copy link
Contributor

tomerd commented Aug 10, 2020

makes sense to me, but lets see what other thinks since I dont have the background on why it was done this way originally

@MaxDesiatov
Copy link
Contributor

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test Linux platform

Copy link
Contributor

@abertelrud abertelrud left a comment

Choose a reason for hiding this comment

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

I don't have any context about why the code was the way it originally was, but the new order is conceptually correct as far as I'm concerned. It matches what similar tools in the ecosystem already do (e.g. Xcode's build settings for controlling paths of binaries etc).

@tomerd
Copy link
Contributor

tomerd commented Aug 17, 2020

@compnerd please merge when ready

@compnerd compnerd merged commit 70c43a5 into swiftlang:master Aug 17, 2020
@compnerd compnerd deleted the the-user-is-always-correct branch August 17, 2020 22:42
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.

5 participants