-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[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
[build-script] Isolate CMake from the system #32437
Conversation
When building on Darwin, we're supposed to build against the SDK, not the host system. Isolate the build further from the system.
@swift-ci test |
@swift-ci please test source compatibility |
Build failed |
@swift-ci please test |
1 similar comment
@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' |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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