summaryrefslogtreecommitdiff
path: root/buildstream/_options/optionarch.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_options/optionarch.py')
-rw-r--r--buildstream/_options/optionarch.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_options/optionarch.py b/buildstream/_options/optionarch.py
index 13a691643..1d8509cf2 100644
--- a/buildstream/_options/optionarch.py
+++ b/buildstream/_options/optionarch.py
@@ -17,7 +17,7 @@
# Authors:
# Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
-import os
+from .._platform import Platform
from .optionenum import OptionEnum
@@ -41,8 +41,7 @@ class OptionArch(OptionEnum):
super(OptionArch, self).load(node, allow_default_definition=False)
def load_default_value(self, node):
- _, _, _, _, machine_arch = os.uname()
- return machine_arch
+ return Platform.get_host_arch()
def resolve(self):