summaryrefslogtreecommitdiff
path: root/.github/workflows/libclang-abi-tests.yml
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2022-08-02 02:02:15 -0700
committerTom Stellard <tstellar@redhat.com>2022-08-02 21:15:39 -0700
commit2d3d0f50ceb938c155a7283e684f28190d24d6ba (patch)
tree19c60ca3f9bbb9bf0097dfbad7adbc6576e60c61 /.github/workflows/libclang-abi-tests.yml
parentce1b24cca886eb9f05e252f399059167473d0ba3 (diff)
downloadllvm-2d3d0f50ceb938c155a7283e684f28190d24d6ba.tar.gz
workflows: Remove symbol versions from libclang.so in the libclang ABI test
Now that the symbol version for libclang.so changes for each release again, we need to remove the symbol versions from the shared library in order for the ABI checker to be able to compare with an older version of the shared library.
Diffstat (limited to '.github/workflows/libclang-abi-tests.yml')
-rw-r--r--.github/workflows/libclang-abi-tests.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/libclang-abi-tests.yml b/.github/workflows/libclang-abi-tests.yml
index 90e816b0eaed..1b063f6430a1 100644
--- a/.github/workflows/libclang-abi-tests.yml
+++ b/.github/workflows/libclang-abi-tests.yml
@@ -124,12 +124,10 @@ jobs:
- name: Dump ABI
run: |
parallel abi-dumper -lver ${{ matrix.ref }} -skip-cxx -public-headers ./install/include/${{ needs.abi-dump-setup.outputs.ABI_HEADERS }} -o {}-${{ matrix.ref }}.abi ./build/lib/{} ::: ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}
- # Remove symbol versioning from dumps, so we can compare across major
- # versions. We don't need to do this for libclang.so since its ABI
- # is stable across major releases and the symbol versions don't change.
- if [ -e libclang-cpp.so-${{ matrix.ref }}.abi ]; then
- sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' libclang-cpp.so-${{ matrix.ref }}.abi
- fi
+ for lib in ${{ needs.abi-dump-setup.outputs.ABI_LIBS }}; do
+ # Remove symbol versioning from dumps, so we can compare across major versions.
+ sed -i 's/LLVM_${{ matrix.llvm_version_major }}/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
+ done
- name: Upload ABI file
uses: actions/upload-artifact@v2
with: