Skip to content

Commit

Permalink
Adding --clang option
Browse files Browse the repository at this point in the history
  • Loading branch information
whart222 committed May 8, 2024
1 parent fb9b89e commit 08d591c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
with_python="OFF"
spack_reinstall=0
spack_dev=0
clang=0
for arg ; do
case "$arg" in
--help)
echo "build_dev.sh [--python] [--spack-reinstall] [--spack-dev] [--help]"
echo "build_dev.sh [--python] [--clang] [--spack-reinstall] [--spack-dev] [--help]"
exit
;;
--python)
with_python="ON"
;;
--clang)
clang=1
;;
--spack-reinstall)
spack_reinstall=1
;;
Expand All @@ -38,6 +42,11 @@ else
with_gurobi="ON"
fi

if [[ $clang -eq 1 ]]; then
export CXX=clang++
export CC=clang
fi

if [[ "${spack_reinstall}" -eq 1 ]]; then
rm -Rf ${SPACK_HOME}
fi
Expand Down

0 comments on commit 08d591c

Please sign in to comment.