To start qualifying lld for iOS and MacOSX, we'd like to make a drop in replacement for /usr/bin/ld (which is now buried inside Xcode.app). But the existing lld is not a drop in replacement because it requires "-flavor darwin" and the thousands of existing projects don't know to add that. We also cannot rename the lld binary to have "darwin" in the name (which the universal driver and pick up on) because existing projects invoke "ld".
My revised proposal is to check if the binary is named "ld" and was built on a darwin system, if so, use darwin driver.