Skip to content

Commit

Permalink
minor change to build options
Browse files Browse the repository at this point in the history
  • Loading branch information
kthohr committed May 2, 2018
1 parent 136838c commit 2a2c4fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ while getopts hcdgi:m:o:p option; do
case "${option}" in
h) print_help; exit 2;;
c) MCMC_COVERAGE_BUILD="y";;
d) MCMC_BUILD="dev";;
d) MCMC_DEV_BUILD="dev";;
g) MCMC_DEBUG_BUILD="y";;
i) MCMC_INSTALL_PATH=${OPTARG};;
m) MCMC_MATRIX_OPS=${OPTARG};;
Expand Down Expand Up @@ -89,7 +89,7 @@ if [[ "${MCMC_COVERAGE_BUILD}" == "y" ]]; then
MCMC_OPT_FLAGS="-g -O0 --coverage -fno-inline -fno-inline-small-functions -fno-default-inline"
else
if [[ "${MCMC_OPT}" == "" ]]; then
MCMC_OPT_FLAGS="-O3 -march=native -ffp-contract=fast -flto -DARMA_NO_DEBUG"
MCMC_OPT_FLAGS="-O3 -march=native -ffp-contract=fast -flto -DNDEBUG -DARMA_NO_DEBUG"
else
MCMC_OPT_FLAGS="${MCMC_OPT}"
fi
Expand Down Expand Up @@ -155,7 +155,7 @@ fi
echo " - OS: ${OSTYPE}"
echo " - C++ compiler: ${CXX}"

if [[ "${MCMC_BUILD}" == "dev" ]]; then
if [[ "${MCMC_DEV_BUILD}" == "dev" ]]; then
echo " - Build version: development"
elif [[ "${MCMC_COVERAGE_BUILD}" == "y" ]]; then
echo " - Build version: coverage"
Expand Down

0 comments on commit 2a2c4fb

Please sign in to comment.