diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl index f06bcb2b4b58d1..f2a1d40f2c8426 100644 --- a/tools/cpp/cc_configure.bzl +++ b/tools/cpp/cc_configure.bzl @@ -105,7 +105,7 @@ def _get_cpu_value(repository_ctx): return "x64_windows" # Use uname to figure out whether we are on x86_32 or x86_64 result = repository_ctx.execute(["uname", "-m"]) - return "piii" if result.stdout == "i386" else "k8" + return "piii" if result.stdout.strip() == "i386" else "k8" _INC_DIR_MARKER_BEGIN = "#include <...> search starts here:"