diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2016-04-19 13:46:01 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-04-19 13:52:19 +0000 |
commit | 0b26f446f8312d1c43d162fe706467ef458c4db8 (patch) | |
tree | 0542fdd29c4ce4e23e24fd8d3c9a994b55c5b3f4 | |
parent | 68e5335b1ec05cffcb08cef552d9d0a2c5d41397 (diff) |
cc_configure: Add piii to the list of supported cpu_value
Fixes #1122.
--
MOS_MIGRATED_REVID=120223970
-rw-r--r-- | tools/cpp/cc_configure.bzl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/cpp/cc_configure.bzl b/tools/cpp/cc_configure.bzl index 2f09ff640d..cb5354ef5d 100644 --- a/tools/cpp/cc_configure.bzl +++ b/tools/cpp/cc_configure.bzl @@ -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:" |