1
1

Merge pull request #4125 from ggouaillardet/topic/flang

configury: patch configure in order to correctly support flang compilers
Этот коммит содержится в:
Gilles Gouaillardet 2017-08-25 19:58:31 +09:00 коммит произвёл GitHub
родитель d0e3bfe213 6f8010c685
Коммит cc41c48026

Просмотреть файл

@ -975,6 +975,28 @@ sub patch_autotools_output {
# Below is essentially an upstream patch for Libtool which we want
# made available to Open MPI users running older versions of Libtool
foreach my $tag (("", "_FC")) {
# We have to change the search pattern and substitution on each
# iteration to take into account the tag changing
my $search_string = '# icc used to be incompatible with GCC.\n\s+' .
'# ICC 10 doesn\047t accept -KPIC any more.\n.*\n\s+' .
"lt_prog_compiler_wl${tag}=";
my $replace_string = "# Flang compiler
*flang)
lt_prog_compiler_wl${tag}='-Wl,'
lt_prog_compiler_pic${tag}='-fPIC -DPIC'
lt_prog_compiler_static${tag}='-static'
;;
# icc used to be incompatible with GCC.
# ICC 10 doesn't accept -KPIC any more.
icc* | ifort*)
lt_prog_compiler_wl${tag}=";
push(@verbose_out, $indent_str . "Patching configure for flang Fortran ($tag)\n");
$c =~ s/$search_string/$replace_string/;
}
foreach my $tag (("", "_FC")) {
# We have to change the search pattern and substitution on each