
This relands the original commit for the versioning script in LLDB. This commit uses '>' for output from `unifdef` for platforms that have that executable but do not have the `-o` option. It also fixes the Xcode build by adding a dependency between the liblldb-header-staging target in the source/API/CMakeLists.txt the `liblldb-resource-headers` target in LLDBFramework.cmake. Original patch: https://github.com/llvm/llvm-project/pull/141116
12 lines
558 B
Plaintext
12 lines
558 B
Plaintext
# Create a temp dir for output and run the version fix script on the truncated version of lldb-defines.h in the inputs dir.
|
|
RUN: mkdir -p %t/Outputs
|
|
RUN: %python %p/../../../scripts/version-header-fix.py %p/Inputs/lldb-defines.h %t/Outputs/lldb-defines.h 21 0 12
|
|
|
|
# Check the output
|
|
RUN: cat %t/Outputs/lldb-defines.h | FileCheck %s
|
|
|
|
# The LLDB version defines must be uncommented and filled in with the values passed into the script.
|
|
CHECK: {{^}}#define LLDB_VERSION 21
|
|
CHECK: {{^}}#define LLDB_REVISION 12
|
|
CHECK: {{^}}#define LLDB_VERSION_STRING "21.0.12"
|