File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
cd ./lmdb/libraries/liblmdb || exit
7
7
git checkout LMDB_0.9.33
8
8
9
+ declare -A build_outputs
9
10
declare -A supported_targets=(
10
11
[ios-arm/native/liblmdb.dylib]=" make CC='xcrun --sdk iphoneos --toolchain iphoneos clang -arch armv7s' LDFLAGS='-s' XCFLAGS='-DNDEBUG'"
11
12
[ios-arm64/native/liblmdb.dylib]=" make CC='xcrun --sdk iphoneos --toolchain iphoneos clang -arch arm64' LDFLAGS='-s' XCFLAGS='-DNDEBUG'"
@@ -33,11 +34,20 @@ function compile_lib() {
33
34
exit 1
34
35
fi
35
36
echo " Build succeeded for $2 "
37
+ output_hash=$( md5 ./liblmdb.so)
38
+ echo " $2 $output_hash "
39
+ build_outputs[" $output_hash " ]=" $2 "
36
40
cp ./liblmdb.so ../../../../src/LightningDB/runtimes/" $2 "
37
41
sleep 10
38
42
# seems to be a stateful race condition on the docker run processes so this allows everything to succeed
39
43
}
40
44
41
45
for key in " ${! supported_targets[@]} " ; do
42
46
compile_lib " ${supported_targets[$key]} " $key
43
- done
47
+ done
48
+
49
+ if [ ${# supported_targets[@]} -eq ${# build_outputs[@]} ]; then
50
+ echo " All builds for lmdb supported targets have succeeded"
51
+ else
52
+ echo " Not all supported targets have produced unique output"
53
+ fi
You can’t perform that action at this time.
0 commit comments