Skip to content

Commit

Permalink
Add compiler flag only if available
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Sep 30, 2021
1 parent 47f9fa0 commit 0865e79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/toolchain/scripts/stage1/install_mpich.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ case "$with_mpich" in

# workaround for compilation with GCC >= 10, until properly fixed:
# https://github.com/pmodels/mpich/issues/4300
("${FC}" --version | grep -q 'GNU') && compat_flag="-fallow-argument-mismatch" || compat_flag=""
if ("${FC}" --version | grep -q 'GNU'); then
("${FC}" --help -v 2>&1 | grep -q 'fallow-argument-mismatch') && compat_flag="-fallow-argument-mismatch" || compat_flag=""
fi
./configure \
--prefix="${pkg_install_dir}" \
--libdir="${pkg_install_dir}/lib" \
Expand Down

0 comments on commit 0865e79

Please sign in to comment.