Merge pull request #88 from greenhouse-org:fix-llvm-version

PiperOrigin-RevId: 341810986
Change-Id: Ieb85da0b1c25d095cd48b6cadcf6a5c825d24a48
diff --git a/cc/private/toolchain/windows_cc_configure.bzl b/cc/private/toolchain/windows_cc_configure.bzl
index 5483272..598d4b2 100644
--- a/cc/private/toolchain/windows_cc_configure.bzl
+++ b/cc/private/toolchain/windows_cc_configure.bzl
@@ -471,7 +471,7 @@
         auto_configure_fail("Failed to get clang version by running \"%s -v\"" % clang_cl)
 
     # Stderr should look like "clang version X.X.X ..."
-    return result.stderr.strip().split(" ")[2]
+    return result.stderr.splitlines()[0].split(" ")[2]
 
 def _get_msys_mingw_vars(repository_ctx):
     """Get the variables we need to populate the msys/mingw toolchains."""