Skip to content

Commit da0c94c

Browse files
authored
Avoid linking both GNU libgomp and LLVM libomp in clang/gfortran builds
1 parent 52ed274 commit da0c94c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

f_check

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ if ($link ne "") {
330330
$flags =~ s/\@/\,/g;
331331
$linker_L .= "-Wl,". $flags . " " ;
332332
}
333+
if ($flags =~ /-lgomp/ && $CC == /clang/) {
334+
$flags = "-lomp";
335+
}
333336

334337
if (
335338
($flags =~ /^\-l/)

0 commit comments

Comments
 (0)