As noticed in #17962, the make build system currently does this (see 3ce0e0ba) but the change was never ported to Hadrian.