Bug 18518 – use stable names for multilib object files (to enable incremental update of archives)

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-24T18:39:57Z
Last change time
2024-12-13T18:57:27Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#17846 →

Comments

Comment #0 by code — 2018-02-24T18:39:57Z
At the moment the names for multilib objects are created based on a count. https://github.com/dlang/dmd/blob/9691eba9441f7f165359716f80f46486ea09fb46/src/dmd/glue.d#L167 unicode_tables.o unicode_tables_3a86_5f8.o unicode_tables_3a87_521.o unicode_tables_3a88_3a1.o unicode_tables_3a89_62c.o This means those names are not stable when using a different command line. If we made the names unique based only on the primary symbol of that multilib object, then we had a stable order that is invariant to modules order on the command line. This could then be used to incrementally update a multilib archive by recompiling only modified modules.
Comment #1 by robert.schadek — 2024-12-13T18:57:27Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17846 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB