I've seen that NAG provides some options to control the output and behavior surrounding .mod files. I've poured through the documentation, and I can't find Intel's direct equivalents to these options, however I think I have an idea of some work arounds. Can someone please let me know if I have overlooked anything?
The NAG options in question are:
- -nocheck_modtime : don't complain if .mod files appear out of date
Does ifort even check the modification time of .mod files? I've been trying to concoct a situation to get the compiler to think that the module is out of date, but have not had any luck.
- -M : only produce .mod file
I think -syntax-only is equivalent? This should be much faster than producing an object file, right?
- -nomod : don't produce .mod file
I can't seem to find any equivalent options, although one could be clever and use -I to find modules in a different directory and then implement some logic to see if the newly produced .mod file is different and if so, move it to the module directory to replace the old version and if not delete it so that it doesn't trigger a cascade when an object on which it depends is built.