Skip to content
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

[SR-18] OS X: provide error when 'swift/utils/build-script -l' uses unsupported configuration #4416

Closed
trfiala mannequin opened this issue Dec 3, 2015 · 6 comments
Closed
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@trfiala
Copy link
Mannequin

trfiala mannequin commented Dec 3, 2015

Previous ID SR-18
Radar None
Original Reporter @trfiala
Type Bug
Status Closed
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee @trfiala
Priority Medium

md5: 41628e4ad536ee3accb299596e07f8e8

Issue Description:

Running the following:

swift/utils/build-script -r -l

will fail in a cryptic way during the lldb build phase. The underlying issue is that the default Xcode build configuration gets used when an unsupported configuration is specified, but the default configuration is not something that will ever build properly on a developer machine.

This was not caught since the lldb/scripts/build-swift-cmake.py script, which wraps build-script, only allows the valid Debug and Release options to be passed to build-script.

Workaround:
Limit builds to Debug or Release with no asserts when using '-l' to add Swift LLDB into the mix.

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Dec 3, 2015

An alternative workaround is to use lldb/scripts/build-swift-cmake.py (use --help to see the options). But this only makes sense for Swift LLDB-focused developers. It is just a light wrapper around the Swift build-script, adding repository cloning/updating and other LLDB-centric options like including the system debugserver or including no debugserver on OS X builds.

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Dec 3, 2015

swiftlang/swift@b08610b

@gribozavr
Copy link

Todd reverted this: swiftlang/swift@02a493b

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Dec 4, 2015

I'm going to reimplement this, checking in build-script-impl so it catches any options passed to build-script that are intended for direct consumption by build-script-impl. In the case of build presets, we hit an issue where direct control of the lldb build variant was missed because it was not using the build-script mechanism to control build variant; rather, it was specifying the build-script-impl variant directly.

Something about that is a little icky; nonetheless, checking in build-script-impl is the most basic (and thorough) way to handle this.

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Dec 5, 2015

SR-19 addresses the common RelWithDebInfoAsserts build variant that this issue here was meant to resolve.

I'll just make sure LLDB can build with the configurations that build-script can generate.

@trfiala
Copy link
Mannequin Author

trfiala mannequin commented Dec 9, 2015

Not to be fixed. Rather, I'll be adding configurations we need.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from swiftlang/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

1 participant