Skip to content

Commit a306bb7

Browse files
committed
tools: fix check-abi.sh after cmake out locations were changed
1 parent 145868a commit a306bb7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/check-abi.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ checkout_and_build() {
4949
-DSECP256K1_BUILD_CTIME_TESTS=OFF \
5050
-DSECP256K1_BUILD_EXAMPLES=OFF
5151
cmake --build . -j "$(nproc)"
52-
abi-dumper src/libsecp256k1.so -o ABI.dump -lver "$2" -public-headers ../include/
52+
# FIXME: Just set LIBPATH to lib/libsecp256k1.so once version 0.6.0 is
53+
# released.
54+
if [ -f "src/libsecp256k1.so" ]; then
55+
LIBPATH="src/libsecp256k1.so"
56+
else
57+
LIBPATH="lib/libsecp256k1.so"
58+
fi
59+
abi-dumper $LIBPATH -o ABI.dump -lver "$2" -public-headers ../include/
5360
cd "$_orig_dir"
5461
}
5562

0 commit comments

Comments
 (0)