diff options
author | Somasekhar Penugonda <somashekar.penugonda@cirrus.com> | 2018-03-15 18:33:11 +0530 |
---|---|---|
committer | Bedarkar, Malhar <malhar.bedarkar@cirrus.com> | 2018-03-27 17:04:26 -0500 |
commit | e62b8109ebfef437a380f2d8cedd1565095a5574 (patch) | |
tree | 2e353dba15707166c005125930dee6be90751193 /mesonbuild/environment.py | |
parent | 831d1e4c2e7b0ce8dfd0b2471bf2dab499181d66 (diff) | |
download | meson-e62b8109ebfef437a380f2d8cedd1565095a5574.zip meson-e62b8109ebfef437a380f2d8cedd1565095a5574.tar.gz meson-e62b8109ebfef437a380f2d8cedd1565095a5574.tar.bz2 |
Updates to CPP support and update review changes
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index f9cd9ca..5c982fd 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -38,8 +38,8 @@ from .compilers import ( is_source, ) from .compilers import ( - ARMCCompiler, - ARMCPPCompiler, + ArmCCompiler, + ArmCPPCompiler, ClangCCompiler, ClangCPPCompiler, ClangObjCCompiler, @@ -493,11 +493,10 @@ class Environment: if found_cl in watcom_cls: continue arg = '/?' + elif 'armcc' in compiler[0]: + arg = '--vsn' else: - if compiler[0] == 'armcc': - arg = '--vsn' - else: - arg = '--version' + arg = '--version' try: p, out, err = Popen_safe(compiler + [arg]) except OSError as e: @@ -543,7 +542,7 @@ class Environment: cls = IntelCCompiler if lang == 'c' else IntelCPPCompiler return cls(ccache + compiler, version, inteltype, is_cross, exe_wrap, full_version=full_version) if 'ARM' in out: - cls = ARMCCompiler if lang == 'c' else ARMCPPCompiler + cls = ArmCCompiler if lang == 'c' else ArmCPPCompiler return cls(ccache + compiler, version, is_cross, exe_wrap, full_version=full_version) self._handle_exceptions(popen_exceptions, compilers) @@ -799,7 +798,7 @@ class Environment: if 'lib' in linker or 'lib.exe' in linker: arg = '/?' else: - arg = '--version' + arg = '--version' try: p, out, err = Popen_safe(linker + [arg]) except OSError as e: |