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

PiperOrigin-RevId: 341810986
Change-Id: Ieb85da0b1c25d095cd48b6cadcf6a5c825d24a48
This commit is contained in:
Copybara-Service 2020-11-11 05:29:11 -08:00
commit b1c40e1de8
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ def _get_clang_version(repository_ctx, clang_cl):
auto_configure_fail("Failed to get clang version by running \"%s -v\"" % clang_cl) auto_configure_fail("Failed to get clang version by running \"%s -v\"" % clang_cl)
# Stderr should look like "clang version X.X.X ..." # 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): def _get_msys_mingw_vars(repository_ctx):
"""Get the variables we need to populate the msys/mingw toolchains.""" """Get the variables we need to populate the msys/mingw toolchains."""