Skip to content

Commit

Permalink
cc_configure.bzl: strip end of line when looking for the cpu
Browse files Browse the repository at this point in the history
As noticed in #1122.

--
MOS_MIGRATED_REVID=120315240
  • Loading branch information
damienmg committed Apr 20, 2016
1 parent 8e2e4b3 commit aa3dbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/cc_configure.bzl
Expand Up @@ -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:"
Expand Down

0 comments on commit aa3dbd3

Please sign in to comment.