-
Notifications
You must be signed in to change notification settings - Fork 352
[lldb][test] Add CMake option for extra Swift driver flags in shell tests #11785
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
base: stable/21.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,10 @@ config.python_executable = "@Python3_EXECUTABLE@" | |
| config.python_root_dir = "@Python3_ROOT_DIR@" | ||
| config.swiftc = "@LLDB_SWIFTC@" | ||
| config.swift_libs_dir = '@LLDB_SWIFT_LIBS@' | ||
| # BEGIN SWIFT | ||
| _swift_driver_flags = lit_config.substitute("@LLDB_SWIFT_DRIVER_EXTRA_FLAGS@") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please mark all Swift-specific additions in generic code with This makes resolving merge conflicts much easier. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I realize this file isn't doing that, but let's add it now)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| config.swift_driver_extra_args = [flag.strip() for flag in _swift_driver_flags.split(";") if flag.strip()] | ||
| # END SWIFT | ||
| config.lldb_enable_swift = @LLDB_ENABLE_SWIFT_SUPPORT@ | ||
| config.have_zlib = @LLVM_ENABLE_ZLIB@ | ||
| config.objc_gnustep_dir = "@LLDB_TEST_OBJC_GNUSTEP_DIR@" | ||
|
|
||
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.
Since this is meant to affect how tests are built, the more idiomatic way would be to use
LLDB_TEST_USER_ARGS. The https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/lldb-cmake-matrix bot uses that creatively to run the LLDB testsuite against different compilers and debug info options.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.
I was very excited about this, but unfortunately it seems like this only applies to API tests and the issue applies to shell tests.