File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -171,3 +171,14 @@ modules of dependent libraries need not also be packaged with the library.
171171When the compiler reads a hermetic module file, the copies of the dependent
172172modules are read into their own scope, and will not conflict with other modules
173173of the same name that client code might ` USE ` .
174+ 
175+ One can use the ` -fhermetic-module-files `  option when building the top-level
176+ module files of a library for which not all of the implementation modules
177+ will (or can) be shipped.
178+ 
179+ It is also possible to convert a default module file to a hermetic one after
180+ the fact.
181+ Since module files are Fortran source, simply copy the module file to a new
182+ temporary free form Fortran source file and recompile it (` -fsyntax-only ` )
183+ with the ` -fhermetic-module-files `  flag, and that will regenerate the module
184+ file in place with all of its dependent modules included.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments