diff options
Diffstat (limited to 'morphlib/util.py')
-rw-r--r-- | morphlib/util.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/morphlib/util.py b/morphlib/util.py index c3a7ac9f..c77ac8d3 100644 --- a/morphlib/util.py +++ b/morphlib/util.py @@ -38,21 +38,6 @@ except NotImplementedError: # pragma: no cover import os -def arch(): - '''Return the CPU architecture of the current host.''' - return os.uname()[4] - - -def target(runcmd): # pragma: no cover - '''Returns the machine triplet of the current host''' - try: - target = runcmd(['cc', '-dumpmachine']).strip() - except cliapp.AppException as e: - raise morphlib.Error( - 'Failed to execute host compiler \'cc\': %s' % e) - return target - - def indent(string, spaces=4): '''Return ``string`` indented by ``spaces`` spaces. |