diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2019-05-05 20:17:25 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2019-05-05 20:19:49 +0200 |
commit | b856f7bf7c6588b02caec9524bb68972c3fd49b3 (patch) | |
tree | fc7ebdce52764f92c3deed0eaaa2087d98853e80 /build/mixxx.py | |
parent | 6ec68bc58947c5b7595e98b0b93e4a821ca5616b (diff) |
Determine the major version only for GCC
Diffstat (limited to 'build/mixxx.py')
-rw-r--r-- | build/mixxx.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build/mixxx.py b/build/mixxx.py index b6f4a7f663..6c966f7524 100644 --- a/build/mixxx.py +++ b/build/mixxx.py @@ -211,17 +211,18 @@ class MixxxBuild(object): self.compiler_is_gcc = 'gcc' in self.env['CC'] self.compiler_is_clang = 'clang' in self.env['CC'] - # Determine the major compiler version - if self.compiler_is_gcc or self.compiler_is_clang: + # Determine the major compiler version (only GCC) + if self.compiler_is_gcc: + self.gcc_major_version = None import subprocess process = subprocess.Popen([self.env['CC'], '-dumpversion'], stdout=subprocess.PIPE) (stdout, stderr) = process.communicate() - compiler_dump_version = stdout + gcc_version = stdout # If match is None we don't know the version. - if not compiler_dump_version is None: - version_split = compiler_dump_version.split('.') + if not gcc_version is None: + version_split = gcc_version.split('.') if version_split: - self.compiler_major_version = int(version_split[0]) + self.gcc_major_version = int(version_split[0]) self.virtualize_build_dir() |