emscripten: enforce version 1.39.19 or higher

pull/11219/head
Kleis Auke Wolthuizen 2 years ago committed by Eli Schwartz
parent 4e1d0e4784
commit cd6b67dea8
  1. 2
      mesonbuild/compilers/c.py
  2. 2
      mesonbuild/compilers/cpp.py

@ -214,6 +214,8 @@ class EmscriptenCCompiler(EmscriptenMixin, ClangCCompiler):
full_version: T.Optional[str] = None):
if not is_cross:
raise MesonException('Emscripten compiler can only be used for cross compilation.')
if not version_compare(version, '>=1.39.19'):
raise MesonException('Meson requires Emscripten >= 1.39.19')
ClangCCompiler.__init__(self, ccache, exelist, version, for_machine, is_cross,
info, exe_wrapper=exe_wrapper, linker=linker,
defines=defines, full_version=full_version)

@ -286,6 +286,8 @@ class EmscriptenCPPCompiler(EmscriptenMixin, ClangCPPCompiler):
full_version: T.Optional[str] = None):
if not is_cross:
raise MesonException('Emscripten compiler can only be used for cross compilation.')
if not version_compare(version, '>=1.39.19'):
raise MesonException('Meson requires Emscripten >= 1.39.19')
ClangCPPCompiler.__init__(self, ccache, exelist, version, for_machine, is_cross,
info, exe_wrapper=exe_wrapper, linker=linker,
defines=defines, full_version=full_version)

Loading…
Cancel
Save