File tree Expand file tree Collapse file tree 5 files changed +109
-106
lines changed Expand file tree Collapse file tree 5 files changed +109
-106
lines changed Original file line number Diff line number Diff line change
1
+ # shellcheck disable=SC2154
1
2
build_opencoarrays ()
2
3
{
3
4
print_header
4
5
info " find_or_install mpich"
5
6
find_or_install mpich
6
7
info " find_or_install cmake"
7
8
find_or_install cmake
8
- mkdir -p $build_path
9
- pushd $build_path
9
+ mkdir -p " $build_path "
10
+ pushd " $build_path "
10
11
if [[ -z " $MPICC " || -z " $MPIFC " || -z " $CMAKE " ]]; then
11
12
emergency " Empty MPICC=$MPICC or MPIFC=$MPIFC or CMAKE=$CMAKE [exit 90]"
12
13
else
13
14
info " Configuring OpenCoarrays in ${PWD} with the command:"
14
15
info " CC=\" ${MPICC} \" FC=\" ${MPIFC} \" $CMAKE \" ${opencoarrays_src_dir} \" -DCMAKE_INSTALL_PREFIX=\" ${install_path} \" "
15
16
CC=" ${MPICC} " FC=" ${MPIFC} " $CMAKE " ${opencoarrays_src_dir} " -DCMAKE_INSTALL_PREFIX=" ${install_path} "
16
17
info " Building OpenCoarrays in ${PWD} with the command make -j${num_threads} "
17
- make -j${num_threads}
18
+ make " -j${num_threads} "
18
19
if [[ ! -z ${SUDO:- } ]]; then
19
20
printf " \nThe chosen installation path requires sudo privileges. Please enter password if prompted.\n"
20
21
fi
You can’t perform that action at this time.
0 commit comments