From aa3dbd3bb540da2458308e64ff1538998030ff43 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Wed, 20 Apr 2016 08:53:10 +0000 Subject: 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(-) (limited to 'tools') diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl index f06bcb2b4b..f2a1d40f2c 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:" -- cgit v1.2.3