Skip to content

[lldb] Make lldbVersion a full fledged library #3662

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

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

JDevlieghere
Copy link

No description provided.

Because of its dependency on clang (and potentially other compilers
downstream, such as swift) lldb_private::GetVersion already lives in its
own library called lldbBase. Despite that, its implementation was spread
across unrelated files. This patch improves things by introducing a
Version library with its own directory, header and implementation file.

The benefits of this patch include:

 - We can get rid of the ugly quoting macros.
 - Other parts of LLDB can read the version number from
   lldb/Version/Version.inc.
 - The implementation can be swapped out for tools like lldb-server than
   don't need to depend on clang at all.

Differential revision: https://reviews.llvm.org/D115211

(cherry picked from commit ccf1469)
@JDevlieghere
Copy link
Author

@swift-ci please test

lldb.cpp is unused after llvm@ccf1469

Differential Revision: https://reviews.llvm.org/D115438

(cherry picked from commit eaf4f60)
@JDevlieghere
Copy link
Author

@swift-ci please test

@JDevlieghere
Copy link
Author

@swift-ci please test macOS

@JDevlieghere JDevlieghere merged commit 6a15209 into stable/20210726 Dec 14, 2021
@JDevlieghere JDevlieghere deleted the 🍒/FBI/ccf1469a4cdb+eaf4f60507fd branch December 14, 2021 04:06
@compnerd
Copy link
Member

This is likely the cause of the Windows build regression: https://ci-external.swift.org/job/oss-swift-windows-toolchain-x86_64-vs2019/495/console

@compnerd compnerd restored the 🍒/FBI/ccf1469a4cdb+eaf4f60507fd branch December 14, 2021 20:12
@compnerd compnerd deleted the 🍒/FBI/ccf1469a4cdb+eaf4f60507fd branch December 14, 2021 20:12
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.

3 participants