diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-20 14:36:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 14:36:16 +0300 |
commit | ce160e1eab303eb2c876862d948497c0c10ef33a (patch) | |
tree | a0c0d433122aee10fa4f39ec8372feb6feb03677 /mesonbuild/compilers | |
parent | 5c85b5028080e74b3a74f9e0d63166c3c3ca15e6 (diff) | |
parent | 744ca13ddb69da337bc19ac0461b769f6f23cfad (diff) | |
download | meson-ce160e1eab303eb2c876862d948497c0c10ef33a.zip meson-ce160e1eab303eb2c876862d948497c0c10ef33a.tar.gz meson-ce160e1eab303eb2c876862d948497c0c10ef33a.tar.bz2 |
Merge pull request #5250 from jon-turney/test-compiler-report
Add a report of compilers used to run_project_tests.py
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 3459a8f..2239aa8 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -914,6 +914,12 @@ class Compiler: def get_id(self): return self.id + def get_version_string(self): + details = [self.id, self.version] + if self.full_version: + details += ['"%s"' % (self.full_version)] + return '(%s)' % (' '.join(details)) + def get_language(self): return self.language |