This avoids a libtool issue (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27866), where libtool fails to pick up the default linked libraries when they are referred to via a direct path to the static library, instead of as a -L + -l pair, as for libgcc.
Or is there some reason not to add the clang_rt dir to the linker path with -L?
Rather than parsing the return string below, wouldn't it be cleaner to modify ToolChain::getCompilerRT to return a tuple (ToolChain::getCompilerRTArgString could still return a string) and then use if here?