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 22, 2016
1 parent e4186b6 commit 3c76adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/cc_configure.bzl
Original file line number Diff line number Diff line change
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 3c76adc

Please sign in to comment.