Skip to content

Commit 2352a1b

Browse files
mmuetzeltru
authored andcommitted
Reapply [lld][flang] Add exceptions for Flang runtime libraries on MinGW.
When linking a shared library with Flang on MinGW, the functions from the Flang runtime are exported from the shared library. When trying to link an executable to that library using Flang, the linker errors out because the functions from the runtime conflict with the functions exported from the shared library. Add the Flang runtime libraries to the list of libraries for which no symbols are exported. Reapplying the patch with the git author name corrected. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D145389 (cherry picked from commit 0ea8229)
1 parent 37ea87b commit 2352a1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/COFF/MinGW.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ AutoExporter::AutoExporter(
4949
"libclang_rt.profile-x86_64",
5050
"libc++",
5151
"libc++abi",
52+
"libFortran_main",
53+
"libFortranRuntime",
54+
"libFortranDecimal",
5255
"libunwind",
5356
"libmsvcrt",
5457
"libucrtbase",

0 commit comments

Comments
 (0)