Skip to content

disallow in-tree builds #27621

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
Oct 12, 2019
Merged

disallow in-tree builds #27621

merged 1 commit into from
Oct 12, 2019

Conversation

compnerd
Copy link
Member

CMake recommends against in-tree builds, most other projects like LLVM
disable this support as well. Performing a configure in the tree can
cause spurious files to be generated which can break the build. Simply
prevent the user from doing so.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CMake recommends against in-tree builds, most other projects like LLVM
disable this support as well.  Performing a configure in the tree can
cause spurious files to be generated which can break the build.  Simply
prevent the user from doing so.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

CC: @jrose-apple

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This is a great idea, thank you!

@compnerd compnerd merged commit 96d4050 into swiftlang:master Oct 12, 2019
@compnerd compnerd deleted the oh-no-you-dont branch October 12, 2019 19:35
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