File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,12 @@ driver) or use Flang with the `-fno-fortran-main` flag. This flag removes
197
197
` Fortran_main ` from the linker stage and hence requires one of the C/C++
198
198
translation units to provide a definition of the ` main ` function.
199
199
200
+ When creating shared or static libraries, ` Fortran_main ` is automatically
201
+ removed from the linker stage. It is assumed that when creating a static or
202
+ shared library, the generated library does not need a ` main ` function, as a
203
+ final link stage will occur that will provide the ` Fortran_main ` library when
204
+ creating the final executable.
205
+
200
206
## Frontend Driver
201
207
Flang's frontend driver is the main interface between compiler developers and
202
208
the Flang frontend. The high-level design is similar to Clang's frontend
You can’t perform that action at this time.
0 commit comments