compiler: Drop --build-id=none hack
Since 2011 the object-joining implementation has had a hack to pass
--build-id=none
to ld
when supported, seemingly to work around a
linker bug. This hack is now unnecessary and may break downstream users
who expect objects to have valid build-ids. Remove it.
Closes #22060 (closed).