From 3c76adc9a92fba70553083fe574dd657f574abd2 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Wed, 20 Apr 2016 08:53:10 +0000 Subject: [PATCH] cc_configure.bzl: strip end of line when looking for the cpu As noticed in #1122. -- MOS_MIGRATED_REVID=120315240 --- tools/cpp/cc_configure.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl index 9e196253ba05c1..faad67dc20b489 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:"