Skip to content

Commit

Permalink
Merge pull request #172 from marcotod1410/disable-assertion-in-win-build
Browse files Browse the repository at this point in the history
Added NDEBUG flag for Windows builds to strip assertion checking
  • Loading branch information
CoreyKaylor authored Jul 9, 2024
2 parents fdd8b31 + 98b9938 commit cf3e608
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lmdb/compile-lmdb-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ make clean
docker run --mount type=bind,source=$(pwd),target=/lmdb --rm --platform=linux/amd64 -w /lmdb gcc:latest make
mv ./liblmdb.so ../../../../src/LightningDB/runtimes/linux-x64/native/liblmdb.so
make clean
make CC='x86_64-w64-mingw32-gcc' AR='x86_64-w64-mingw32-gcc-ar'
make CC='x86_64-w64-mingw32-gcc' AR='x86_64-w64-mingw32-gcc-ar' XCFLAGS='-DNDEBUG'
mv ./liblmdb.so ../../../../src/LightningDB/runtimes/win-x64/native/lmdb.dll
make clean
make CC='i686-w64-mingw32-gcc' AR='i686-w64-mingw32-gcc-ar'
make CC='i686-w64-mingw32-gcc' AR='i686-w64-mingw32-gcc-ar' XCFLAGS='-DNDEBUG'
mv ./liblmdb.so ../../../../src/LightningDB/runtimes/win-x86/native/lmdb.dll
make clean
#Android NDK
Expand All @@ -52,9 +52,9 @@ mv ./liblmdb.so ../../../../src/LightningDB/runtimes/android-x64/native/liblmdb.
make clean
# Checkout release sha with FIXEDSIZE preprocessor directive to support auto-growing map size on Windows
git checkout 48a7fed59a8aae623deff415dda27097198ca0c1
make CC='x86_64-w64-mingw32-gcc' AR='x86_64-w64-mingw32-gcc-ar' XCFLAGS='-UMDB_FIXEDSIZE'
make CC='x86_64-w64-mingw32-gcc' AR='x86_64-w64-mingw32-gcc-ar' XCFLAGS='-UMDB_FIXEDSIZE -DNDEBUG'
mv ./liblmdb.so ../../../../src/LightningDB/runtimes/win-x64/native/lmdbautoresize.dll
make clean
make CC='i686-w64-mingw32-gcc' AR='i686-w64-mingw32-gcc-ar' XCFLAGS='-UMDB_FIXEDSIZE'
make CC='i686-w64-mingw32-gcc' AR='i686-w64-mingw32-gcc-ar' XCFLAGS='-UMDB_FIXEDSIZE -DNDEBUG'
mv ./liblmdb.so ../../../../src/LightningDB/runtimes/win-x86/native/lmdbautoresize.dll
make clean

0 comments on commit cf3e608

Please sign in to comment.