Skip to content

[cherry-pick][release/5.9] [Build] Don't configure LLDB with tests enabled if the tests will be skipped #66172

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

Michael137
Copy link
Contributor

Currently the --skip-test-lldb flag will only skip running the
tests. But we still pass LLDB_INCLUDE_TESTS to CMake when configuring
LLDB.

Since #66018 configuring LLDB tests will
now always require libcxx to be built. For some presets (e.g.,
buildbot_osx_package) we don't need to build libcxx and we explicitly
pass --skip-test-lldb; this means if we were to try configure LLDB
tests we would hard error.

The proposed solution is to check whether the user wants to skip LLDB
tests, and if so, set LLDB_INCLUDE_TESTS=FALSE.

rdar://109774179

The preset for ubsan/asan buildbots include the
`buildbot_incremental_base` preset, which builds/runs
tests. But the tests now require libcxx to be built
since swiftlang#66018

(cherry picked from commit 7893c8e)
…skipped

Currently the `--skip-test-lldb` flag will only skip *running* the
tests. But we still pass `LLDB_INCLUDE_TESTS` to CMake when configuring
LLDB.

Since swiftlang#66018 configuring LLDB tests will
now always require libcxx to be built. For some presets (e.g.,
`buildbot_osx_package`) we don't need to build libcxx and we explicitly
pass `--skip-test-lldb`; this means if we were to try configure LLDB
tests we would hard error.

The proposed solution is to check whether the user wants to skip LLDB
tests, and if so, set `LLDB_INCLUDE_TESTS=FALSE`.

rdar://109774179
(cherry picked from commit 2d41efe)
@Michael137 Michael137 requested a review from a team as a code owner May 26, 2023 13:44
@Michael137
Copy link
Contributor Author

@swift-ci test

@Michael137 Michael137 merged commit 2fb3d12 into swiftlang:release/5.9 May 27, 2023
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.

2 participants