Skip to content

Commit

Permalink
cc_configure: Add piii to the list of supported cpu_value
Browse files Browse the repository at this point in the history
Fixes #1122.

--
MOS_MIGRATED_REVID=120223970
  • Loading branch information
damienmg committed Apr 19, 2016
1 parent 68e5335 commit 0b26f44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/cpp/cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def _get_cpu_value(repository_ctx):
return "freebsd"
if os_name.find("windows") != -1:
return "x64_windows"
return "k8"
# 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"


_INC_DIR_MARKER_BEGIN = "#include <...> search starts here:"
Expand Down

0 comments on commit 0b26f44

Please sign in to comment.