Commit 39a64fb 1 parent d7c14b6 commit 39a64fb Copy full SHA for 39a64fb
File tree 3 files changed +16
-15
lines changed
3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ test/test.xcodeproj/*/xcuser*
23
23
test /* .o
24
24
test /* .pem
25
25
test /* .srl
26
+ test /_build_ *
26
27
work /
27
28
benchmark /server *
28
29
Original file line number Diff line number Diff line change @@ -69,5 +69,5 @@ cert.pem:
69
69
./gen-certs.sh
70
70
71
71
clean :
72
- rm -f test test_split test_proxy server_fuzzer * .pem * .0 * .o * .1 * .srl httplib.h httplib.cc
72
+ rm -rf test test_split test_proxy server_fuzzer * .pem * .0 * .o * .1 * .srl httplib.h httplib.cc _build *
73
73
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- CURRENT_COMMIT=$( git rev-parse HEAD)
3
- PREVIOUS_VERSION=$( git describe --tags --abbrev=0 $CURRENT_COMMIT )
4
-
5
- BUILD_DIR=_build_for_is_abi_compatible
2
+ PREVIOUS_VERSION=$( git describe --tags --abbrev=0 master)
3
+ BUILD_DIR=_build_for_abi_compatibility_check
6
4
7
5
# Make the build directory
8
6
rm -rf $BUILD_DIR
29
27
30
28
# Build the nearest vesion
31
29
cd old
30
+
32
31
cmake \
33
32
-DCMAKE_BUILD_TYPE=Debug \
34
33
-DCMAKE_CXX_FLAGS=" -g -Og" \
@@ -44,15 +43,16 @@ cmake --build . --target clean > /dev/null
44
43
cd ..
45
44
46
45
# Checkout the original commit
47
- if [ " $CURRENT_COMMIT " = " $( git rev-parse master) " ]; then
48
- git checkout -q master
49
- else
50
- git checkout -q " ${CURRENT_COMMIT} "
51
- fi
46
+ git checkout -q master
52
47
53
48
# ABI compatibility check
54
- ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.so ./new/out/lib/libcpp-httplib.so
55
-
56
- # Clean the build directory
57
- cd ..
58
- rm -rf $BUILD_DIR
49
+ if [[ " $OSTYPE " == " linux-gnu" * ]]; then
50
+ ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.so ./new/out/lib/libcpp-httplib.so
51
+ exit $?
52
+ elif [[ " $OSTYPE " == " darwin" * ]]; then
53
+ ../check-abi-compatibility.sh ./old/out/lib/libcpp-httplib.dylib ./new/out/lib/libcpp-httplib.dylib
54
+ exit $?
55
+ else
56
+ echo " Unknown OS..."
57
+ exit 1
58
+ fi
You can’t perform that action at this time.
0 commit comments