Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: scripts/slave/recipe_modules/platform/api.py

Issue 740263003: Report the HOST_BITS as 64 if the kernel is 32-bit but the CPU supports 64-bit. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/platform/api.py
diff --git a/scripts/slave/recipe_modules/platform/api.py b/scripts/slave/recipe_modules/platform/api.py
index f971208422c122a0ca236b6c44bf32cff4601717..7d078bcb91b8e4829fbd96c7474e094f8228b548 100644
--- a/scripts/slave/recipe_modules/platform/api.py
+++ b/scripts/slave/recipe_modules/platform/api.py
@@ -53,6 +53,12 @@ class PlatformApi(recipe_api.RecipeApi):
self._bits == 64 and
platform.architecture()[0] == '32bit'):
self._bits = 32
+ # On Mac, the inverse of the above is true: the kernel is 32-bit but the
+ # CPU and userspace both are capable of running 64-bit programs.
+ elif (self._name == 'mac' and
+ self._bits == 32 and
+ platform.architecture()[0] == '64bit'):
+ self._bits = 64
@property
@recipe_api.non_step
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698