File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
prerequisites/install-functions Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,13 @@ build_opencoarrays()
18
18
if [[ " ${MPIFC_show[0]} " != * gfortran* || " ${MPICC_show[0]} " != * gcc* ]]; then
19
19
emergency " build_opencoarrays.sh: MPI doesn't wrap gfortran/gcc: \$ {MPIFC_show}=${MPIFC_show[*]} , \$ {MPICC_show}=${MPICC_show[*]} "
20
20
fi
21
- # Set FC to the MPI implementation's gfortran command with any preceding path but without any subsequent arguments:
21
+ if [[ -z " ${OPENCOARRAYS_DEVELOPER:- } " ]]; then
22
+ # We should examine the value too, but CMake has many ways of saying "true"
23
+ WDEVFLAG=-Wno-dev
24
+ else
25
+ WDEVFLAG=-Wdev
26
+ fi
27
+ # Set FC to the MPI implementation's gfortran command with any preceding path but without any subsequent arguments:
22
28
FC=" ${MPIFC_show[0]} "
23
29
# Set CC to the MPI implementation's gcc command...
24
30
CC=" ${MPICC_show[0]} "
@@ -31,8 +37,8 @@ build_opencoarrays()
31
37
MPIEXEC=" ${MPIEXEC_CANDIDATES[0]} "
32
38
fi
33
39
info " Configuring OpenCoarrays in ${PWD} with the command:"
34
- info " CC=\" ${CC} \" FC=\" ${FC} \" $CMAKE \" ${opencoarrays_src_dir} \" -DCMAKE_INSTALL_PREFIX=\" ${install_path} \" -DMPIEXEC=\" ${MPIEXEC} \" -DMPI_C_COMPILER=\" ${MPICC} \" -DMPI_Fortran_COMPILER=\" ${MPIFC} \" "
35
- CC=" ${CC} " FC=" ${FC} " $CMAKE " ${opencoarrays_src_dir} " -DCMAKE_INSTALL_PREFIX=" ${install_path} " -DMPIEXEC=" ${MPIEXEC} " -DMPI_C_COMPILER=" ${MPICC} " -DMPI_Fortran_COMPILER=" ${MPIFC} "
40
+ info " CC=\" ${CC} \" FC=\" ${FC} \" $CMAKE \" ${opencoarrays_src_dir} \" \" ${WDEVFLAG} \" -DCMAKE_INSTALL_PREFIX=\" ${install_path} \" -DMPIEXEC=\" ${MPIEXEC} \" -DMPI_C_COMPILER=\" ${MPICC} \" -DMPI_Fortran_COMPILER=\" ${MPIFC} \" "
41
+ CC=" ${CC} " FC=" ${FC} " $CMAKE " ${opencoarrays_src_dir} " " ${WDEVFLAG} " -DCMAKE_INSTALL_PREFIX=" ${install_path} " -DMPIEXEC=" ${MPIEXEC} " -DMPI_C_COMPILER=" ${MPICC} " -DMPI_Fortran_COMPILER=" ${MPIFC} "
36
42
info " Building OpenCoarrays in ${PWD} with the command make -j${num_threads} "
37
43
make " -j${num_threads} "
38
44
if [[ ! -z ${SUDO:- } ]]; then
You can’t perform that action at this time.
0 commit comments