
This commit creates a Python script that fixes up the versioning information in lldb-defines.h. It also moves the build logic for fixing up the lldb headers from being in the framework only to being in the same location that we create the liblldb target.
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"
|