Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang] Add -fhermetic-module-files #98083

Merged
merged 1 commit into from
Jul 11, 2024
Merged

[flang] Add -fhermetic-module-files #98083

merged 1 commit into from
Jul 11, 2024

Commits on Jul 8, 2024

  1. [flang] Add -fhermetic-module-files

    Module files emitted by this Fortran compiler are valid Fortran source
    files.  Symbols that are USE-associated into modules are represented
    in their module files with USE statements and special comments with
    hash codes in them to ensure that those USE statements resolve to
    the same modules that were used to build the module when its module
    file was generated.
    
    This scheme prevents unchecked module file growth in large applications
    by not emitting USE-associated symbols redundantly.  This problem can
    be especially bad when derived type definitions must be repeated in
    the module files of their clients, and the clients of those modules,
    and so on.  However, this scheme has the disadvantage that clients of
    modules must be compiled with dependent modules in the module search path.
    
    This new -fhermetic-module-files option causes module file output to
    be free of dependences on any non-intrinsic module files; dependent
    modules are instead emitted as part of the module file, rather than
    being USE-associated.  It is intended for top level library module files
    that are shipped with binary libraries when it is not convenient to collect
    and ship their dependent module files as well.
    
    Fixes llvm#97398.
    klausler committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    e85b374 View commit details
    Browse the repository at this point in the history