Skip to content

Commit

Permalink
Updated build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Apr 26, 2024
1 parent 1f4a3a9 commit c7ca290
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
23 changes: 19 additions & 4 deletions etc/parse_args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,31 @@ export CMAKE_OSX_ARCHITECTURES=""
export CMAKE_VERBOSE_MAKEFILE=OFF
export BUILD_TYPE_DIR="Release"
export CMAKE_BUILD_TYPE="Release"
export CMAKE_GENERATOR="Ninja"
export CMAKE_TARGET=""
ASK_TO_CONTINUE=0


#
# In Windows, we always build with RelWithDebInfo so that we can check for
# crashes. On Linux and macOS we build with symbols when I am the user
# compiling it locally as GitHub Actions runs out of disk space.
#
build_with_symbols=0
if [[ $KERNEL == *Msys* ]]; then
build_with_symbols=1
else
username=$(whoami)
if [[ $username == gga ]]; then
build_with_symbols=1
fi
fi

if [[ $build_with_symbols == 1 ]]; then
export BUILD_TYPE_DIR="Release"
export CMAKE_BUILD_TYPE="RelWithDebInfo"
fi

export CMAKE_GENERATOR="Ninja"
export CMAKE_TARGET=""
ASK_TO_CONTINUE=0

for i in "$@"; do
case $i in
reldeb|RelWithDebInfo)
Expand Down
5 changes: 3 additions & 2 deletions runme_nolog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ echo
echo "Building summary"
echo "================"
echo
echo "Build directory is ${BUILD_DIR}"
echo "mrv2 version to build is v${mrv2_VERSION}"
echo "Architecture is ${ARCH}"
echo
echo "Build directory is ${BUILD_DIR}"
echo "Build type is ${CMAKE_BUILD_TYPE}"
echo "Building with ${COMPILER_VERSION}, ${CPU_CORES} cores"
echo "Compiler flags are ${FLAGS}"
echo "$CMAKE_VERSION"
Expand Down

0 comments on commit c7ca290

Please sign in to comment.