File tree 3 files changed +4
-2
lines changed
src/LightningDB/runtimes/browser-wasm/native
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Using mingw to compile Windows native libs for x86 and x64
2
2
brew "mingw-w64"
3
+ brew "emscripten"
3
4
cask "android-ndk"
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ declare -A supported_targets=(
23
23
[android-arm/native/liblmdb.so]=" make CC=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang AR=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar LDFLAGS='-s' XCFLAGS='-UMDB_USE_ROBUST -DMDB_USE_POSIX_MUTEX -DANDROID -DNDEBUG'"
24
24
[android-x86/native/liblmdb.so]=" make CC=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/i686-linux-android21-clang AR=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar LDFLAGS='-s' XCFLAGS='-UMDB_USE_ROBUST -DMDB_USE_POSIX_MUTEX -DANDROID -DNDEBUG'"
25
25
[android-x64/native/liblmdb.so]=" make CC=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/x86_64-linux-android21-clang AR=$NDK /toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar LDFLAGS='-s' XCFLAGS='-UMDB_USE_ROBUST -DMDB_USE_POSIX_MUTEX -DANDROID -DNDEBUG'"
26
+ [browser-wasm/native/liblmdb.wasm]=" emmake make LDFLAGS='-s' XCFLAGS='-DNDEBUG'"
26
27
)
27
28
28
29
function compile_lib() {
@@ -38,7 +39,7 @@ function compile_lib() {
38
39
echo " $2 $output_hash "
39
40
build_outputs[" $output_hash " ]=" $2 "
40
41
cp ./liblmdb.so ../../../../src/LightningDB/runtimes/" $2 "
41
- sleep 10
42
+ sleep 10
42
43
# seems to be a stateful race condition on the docker run processes so this allows everything to succeed
43
44
}
44
45
@@ -50,4 +51,4 @@ if [ ${#supported_targets[@]} -eq ${#build_outputs[@]} ]; then
50
51
echo " All builds for lmdb supported targets have succeeded"
51
52
else
52
53
echo " Not all supported targets have produced unique output"
53
- fi
54
+ fi
You can’t perform that action at this time.
0 commit comments