-
Notifications
You must be signed in to change notification settings - Fork 10.5k
build: Override default build variant for --xcode
#63271
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
Conversation
Why is this line needed if we set the default in |
@swift-ci python lint |
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.
Awesome!
@swift-ci please smoke test |
@swift-ci please smoke test macOS |
@@ -357,7 +357,7 @@ while retaining the option of building with Ninja on the command line. | |||
|
|||
Assuming that you have already [built the toolchain via Ninja](#the-actual-build), | |||
several more steps are necessary to set up this environment: | |||
* Generate Xcode projects with `utils/build-script --release --swift-darwin-supported-archs "$(uname -m)" --xcode --clean`. | |||
* Generate Xcode projects with `utils/build-script --swift-darwin-supported-archs "$(uname -m)" --xcode --clean`. |
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.
Do you know why we need to pass this flag?
--swift-darwin-supported-archs
@edymtt might have more insight.
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.
For the Xcode generator? Yes, because of errors like this one:
CMake Error in SwiftCompilerSources/CMakeLists.txt:
The custom command generating
/Users/mac/Desktop/swift-project/build/Xcode-DebugAssert/swift-macosx-x86_64/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/lib/swift/macosx/x86_64/libcxxshim.modulemap
is attached to multiple targets:
lib-swift-macosx-arm64-libcxxshim.modulemap
lib-swift-macosx-x86_64-libcxxshim.modulemap
but none of these is a common dependency of the other(s). This is not
allowed by the Xcode "new build system".
multiple targets not supported by Xcode
Follow-up to #62156.