summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-12-05 14:43:32 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2013-12-05 14:43:32 -0500
commit60134ddcbadfb6af9737c5fa303f10d13f34344c (patch)
tree2e8728be101553c5b2305d0db8a29259d4d7f06d /wscript
parent75212b28b2d4c0345a43745cd738b0d214ba5d47 (diff)
remove unnecessary and *nix-centric LANG= from start of command used to get gcc version; use python's platform.uname() rather than os.uname() to get platform information
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/wscript b/wscript
index 6fe36608d6..d6410848f2 100644
--- a/wscript
+++ b/wscript
@@ -6,6 +6,7 @@ import re
import string
import subprocess
import sys
+import platform as PLATFORM
def fetch_git_revision ():
cmd = "git describe HEAD"
@@ -85,7 +86,7 @@ i18n_children = [
# Version stuff
def fetch_gcc_version (CC):
- cmd = "LANG= %s --version" % CC
+ cmd = "%s --version" % CC
output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines()
o = output[0].decode('utf-8')
version = o.split(' ')[2].split('.')
@@ -127,7 +128,7 @@ def set_compiler_flags (conf,opt):
optimization_flags = []
debug_flags = []
- u = os.uname ()
+ u = PLATFORM.uname ()
cpu = u[4]
platform = u[0].lower()
version = u[2]