diff options
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 0d30adb..cd55ace 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -60,6 +60,8 @@ from .compilers import ( ElbrusCCompiler, ElbrusCPPCompiler, ElbrusFortranCompiler, + EmscriptenCCompiler, + EmscriptenCPPCompiler, IntelCCompiler, IntelCPPCompiler, IntelClCCompiler, @@ -707,6 +709,11 @@ class Environment: cls = GnuCCompiler if lang == 'c' else GnuCPPCompiler return cls(ccache + compiler, version, compiler_type, for_machine, is_cross, exe_wrap, defines, full_version=full_version) + if 'Emscripten' in out: + cls = EmscriptenCCompiler if lang == 'c' else EmscriptenCPPCompiler + compiler_type = CompilerType.CLANG_EMSCRIPTEN + return cls(ccache + compiler, version, compiler_type, for_machine, is_cross, exe_wrap, full_version=full_version) + if 'armclang' in out: # The compiler version is not present in the first line of output, # instead it is present in second line, startswith 'Component:'. |