Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions f_check
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ else
if [ -z "$data" ]; then
data=`$compiler -O2 -S ftest.f > /dev/null 2>&1 && cat ftest.c && rm -f ftest.c`
fi
# Some compilers (e.g. Intel ifx) embed no vendor identity in the assembly;
# append the --version banner so the vendor detection below can match them.
ver=`$compiler --version 2>&1` && data=`printf '%s\n%s' "$data" "$ver"`

case "$data" in *zhoge_*) bu=_ ;; esac

Expand Down
8 changes: 6 additions & 2 deletions f_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

$compiler = join(" ", @ARGV);
$compiler_bin = shift(@ARGV);

# f77 is too ambiguous
$compiler = "" if $compiler eq "f77";

Expand Down Expand Up @@ -67,6 +67,10 @@
if ($data eq "") {
$data = `$compiler -O2 -S ftest.f > /dev/null 2>&1 && cat ftest.c && rm -f ftest.c`;
}
my $ver = `$compiler --version 2>&1`;
if (!$?) {
$data = "$data\n$ver";
}
if ($data =~ /zhoge_/) {
$bu = "_";
}
Expand Down Expand Up @@ -323,7 +327,7 @@
if ($link ne "") {

$link =~ s/\-Y\sP\,/\-Y/g;

$link =~ s/\-R\s*/\-rpath\%/g;

$link =~ s/\-rpath\s+/\-rpath\%/g;
Expand Down
Loading