Skip to content

Closes #4836: --saveUsedModules should only save modules that are not compiled by default - #4920

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4836-saveUsedModules_should_only_save_modules_that_are_not_compiled_by_default
Sep 22, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:4836-saveUsedModules_should_only_save_modules_that_are_not_compiled_by_default

Conversation

@1RyanK

@1RyanK 1RyanK commented Sep 17, 2025

Copy link
Copy Markdown
Contributor

In CommandMap.chpl modules are added rather indiscriminately to usedModules. The issue arises in that in src/registry/register_commands.py, this gets defined: DEFAULT_MODS = ["MsgProcessing", "GenSymIO"]. It seems that these automatically come along for the ride and don't need to be included in UsedModules.cfg.

Closes #4836: --saveUsedModules should only save modules that are not compiled by default

@1RyanK
1RyanK marked this pull request as ready for review September 17, 2025 21:38
@1RyanK
1RyanK force-pushed the 4836-saveUsedModules_should_only_save_modules_that_are_not_compiled_by_default branch from 2ca597c to 9ba307d Compare September 18, 2025 14:46

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

Comment thread src/CommandMap.chpl Resolved
@1RyanK
1RyanK force-pushed the 4836-saveUsedModules_should_only_save_modules_that_are_not_compiled_by_default branch from 52ccbc7 to 051e33f Compare September 19, 2025 16:00
@1RyanK
1RyanK force-pushed the 4836-saveUsedModules_should_only_save_modules_that_are_not_compiled_by_default branch from 051e33f to 0b97017 Compare September 19, 2025 16:00

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ajpotts
ajpotts added this pull request to the merge queue Sep 22, 2025
Merged via the queue into Bears-R-Us:main with commit 46524b4 Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--saveUsedModules should only save modules that are not compiled by default

3 participants