Previously, we only did this when setting the `generateCodeForLibraries: false`. This is needed so that libraries compiled with `generateCodeForLibraries: true` can be used as dependencies of other compilation units. PR Close #18788
Previously, we only did this when setting the `generateCodeForLibraries: false`. This is needed so that libraries compiled with `generateCodeForLibraries: true` can be used as dependencies of other compilation units. PR Close #18788