We ran into some strange test failures on a Windows machine that didn't have *nix style commands on the path, but was setting a path to the gnuwin32 tools via LLVM_LIT_TOOLS_DIR. Both the check-compiler-rt and check-lit tests weren't taking notice of this option.
This patch takes care of the compiler-rt part (see D40520 for the check-lit part).