diff options
author | Bedarkar, Malhar <malhar.bedarkar@cirrus.com> | 2018-03-14 22:42:06 -0500 |
---|---|---|
committer | Bedarkar, Malhar <malhar.bedarkar@cirrus.com> | 2018-03-14 22:42:06 -0500 |
commit | 831d1e4c2e7b0ce8dfd0b2471bf2dab499181d66 (patch) | |
tree | ade32058b5efce128ee8be3502f30e1bec3a53be /mesonbuild/environment.py | |
parent | 93bdbc3162213bec9ce47303c780531e50da1ff8 (diff) | |
download | meson-831d1e4c2e7b0ce8dfd0b2471bf2dab499181d66.zip meson-831d1e4c2e7b0ce8dfd0b2471bf2dab499181d66.tar.gz meson-831d1e4c2e7b0ce8dfd0b2471bf2dab499181d66.tar.bz2 |
- Updating cpp_std options similar to other compiler classes
- Updating environment.py for selecting '--vsn' option for armcc only.
- Updating build type arguments from GitHub pull request - 3157
Change-Id: Id3151e7715ec1016afdbd65391bb0d414ec7de13
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 1d3ba72..f9cd9ca 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -39,6 +39,7 @@ from .compilers import ( ) from .compilers import ( ARMCCompiler, + ARMCPPCompiler, ClangCCompiler, ClangCPPCompiler, ClangObjCCompiler, @@ -493,7 +494,7 @@ class Environment: continue arg = '/?' else: - if re.search('.*arm.*', compiler[0]): + if compiler[0] == 'armcc': arg = '--vsn' else: arg = '--version' @@ -542,7 +543,8 @@ 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: - return ARMCCompiler(ccache + compiler, version, is_cross, exe_wrap, full_version=full_version) + 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) def detect_c_compiler(self, want_cross): @@ -797,9 +799,6 @@ class Environment: if 'lib' in linker or 'lib.exe' in linker: arg = '/?' else: - if re.search('.*arm.*', linker[0]): - arg = '--vsn' - else: arg = '--version' try: p, out, err = Popen_safe(linker + [arg]) |