Skip to content

Commit

Permalink
tools: fix check-abi.sh after cmake out locations were changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Nov 4, 2024
1 parent 2fdc523 commit 1564bf9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/check-abi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ checkout_and_build() {
-DSECP256K1_BUILD_CTIME_TESTS=OFF \
-DSECP256K1_BUILD_EXAMPLES=OFF
cmake --build . -j "$(nproc)"
abi-dumper src/libsecp256k1.so -o ABI.dump -lver "$2" -public-headers ../include/
# FIXME: Just set LIBPATH to lib/libsecp256k1.so once version 0.6.0 is
# released.
if [ -f "src/libsecp256k1.so" ]; then
LIBPATH="src/libsecp256k1.so"
else
LIBPATH="lib/libsecp256k1.so"
fi
abi-dumper $LIBPATH -o ABI.dump -lver "$2" -public-headers ../include/
cd "$_orig_dir"
}

Expand Down

0 comments on commit 1564bf9

Please sign in to comment.