Skip to content

[build-script] Isolate CMake from the system #32437

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 4 commits into from
Jun 17, 2020

Conversation

DougGregor
Copy link
Member

When building on Darwin, we're supposed to build against the SDK,
not the host system. Isolate the build further from the system.

This continues the work of #32419

When building on Darwin, we're supposed to build against the SDK,
not the host system. Isolate the build further from the system.
@DougGregor
Copy link
Member Author

@swift-ci test

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e06bccd

@DougGregor
Copy link
Member Author

@swift-ci please test

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please test

@@ -701,6 +701,11 @@ class BuildScriptInvocation(object):
"--host-lipo", toolchain.lipo,
]

# Isolate build from the system; Darwin toolchains build against SDKs.
args.extra_cmake_options.append(
'-DCMAKE_IGNORE_PATH=/usr/lib;/usr/local/lib;/lib'
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add to the comment here what type of problems result from us not doing this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or you know what. I think this is pretty common sense. Nm.

@DougGregor DougGregor merged commit c7da0f2 into swiftlang:master Jun 17, 2020
@DougGregor DougGregor deleted the darwin-system-distancing branch June 17, 2020 22:07
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