From 0b26f446f8312d1c43d162fe706467ef458c4db8 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Tue, 19 Apr 2016 13:46:01 +0000 Subject: cc_configure: Add piii to the list of supported cpu_value Fixes #1122. -- MOS_MIGRATED_REVID=120223970 --- tools/cpp/cc_configure.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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:" -- cgit v1.2.3