aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-04-20 08:53:10 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-04-20 11:17:54 +0000
commitaa3dbd3bb540da2458308e64ff1538998030ff43 (patch)
treede349dca06e5d0348b844cbe423e18514ccd0d50 /tools
parent8e2e4b3e8cfd8c4addf9a5a6f8d7c0dd97ab54cc (diff)
cc_configure.bzl: strip end of line when looking for the cpu
As noticed in #1122. -- MOS_MIGRATED_REVID=120315240
Diffstat (limited to 'tools')
-rw-r--r--tools/cpp/cc_configure.bzl2
1 files changed, 1 insertions, 1 deletions
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:"