mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 15:26:31 +00:00
Estimated hours taken: 1 Branches: main Make smart recompilation work where the module name doesn't match the file name (e.g. in the compiler). compiler/modules.m: Where the module name doesn't match the file name and there is a Mercury.modules file, pass the module name to mmc, not the file name. compiler/source_file_map.m: Add a predicate `have_source_file_map' for use by modules.m. Don't put the Mercury.modules file in the Mercury subdirectory. It's the user's responsibility to clean it up, so it should be in the main directory. compiler/mercury_compile.m: Suggest creating the Mercury.modules file if passed a file name which doesn't match the module name. compiler/Mmakefile: browser/Mmakefile: Generate the Mercury.modules file. tests/hard_coded/Mmakefile: The Mercury.modules file is no longer generated in the Mercury subdirectory.