Programs and libraries built with `RUST_PROGRAMS` don't currently make use of the `RESFILE` variable, so they don't get the default metadata that existing binaries come with. The `RESFILE` variable specifies the name of a compiled resource file to be linked into the binary, as the result of compiling any existing .res or .rc files. If `RESFILE` is not given (the common case), then [version.mk](https://searchfox.org/mozilla-central/source/config/version.mk) will provide a default module.rc with version metadata, and `RESFILE` is set to module.res. So as long as `$(RESFILE)` is a prerequisite for the target (as it is for [`PROGRAM`](https://searchfox.org/mozilla-central/rev/06bd14ced96f25ff1dbd5352cb985fc0fa12a64e/config/rules.mk#515)) it will get some resource built. This then needs to be included in the link. Patch incoming.
Bug 1561749 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Programs built with `RUST_PROGRAMS` don't currently make use of the `RESFILE` variable, so they don't get the default metadata that existing binaries come with. The `RESFILE` variable specifies the name of a compiled resource file to be linked into the binary, as the result of compiling any existing .res or .rc files. If `RESFILE` is not given (the common case), then [version.mk](https://searchfox.org/mozilla-central/source/config/version.mk) will provide a default module.rc with version metadata, and `RESFILE` is set to module.res. So as long as `$(RESFILE)` is a prerequisite for the target (as it is for [`PROGRAM`](https://searchfox.org/mozilla-central/rev/06bd14ced96f25ff1dbd5352cb985fc0fa12a64e/config/rules.mk#515)) it will get some resource built. This then needs to be included in the link. Patch incoming.