Skip to content

Commit

Permalink
Add a script to build in Release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Aug 19, 2024
1 parent c032d16 commit 8a012c9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e
set -x

cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" \
-DWITH_LLVM=yes \
-DLFORTRAN_BUILD_ALL=yes \
-DWITH_STACKTRACE=no \
-DWITH_RUNTIME_STACKTRACE=yes \
-DCMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH_LFORTRAN;$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
-DCMAKE_INSTALL_LIBDIR=share/lfortran/lib \
.
cmake --build . -j16 --target install

0 comments on commit 8a012c9

Please sign in to comment.