aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-19 21:56:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-08-05 19:31:32 +0300
commitf41bdae36861baa8be541af8273adc5b4b94ec48 (patch)
tree9334ac78c12e5505592dcff7f6f5c32c999ee4fb /mesonbuild/build.py
parentddbf60f86da4ece3d407fe3b3e38ff45e34f561e (diff)
downloadmeson-f41bdae36861baa8be541af8273adc5b4b94ec48.zip
meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.gz
meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.bz2
Add basic Webassembly support via Emscripten.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index d5814ff..b77995a 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1432,6 +1432,8 @@ class Executable(BuildTarget):
# Executable for Windows or C#/Mono
if machine.is_windows() or machine.is_cygwin() or 'cs' in self.compilers:
self.suffix = 'exe'
+ elif machine.system.startswith('wasm') or machine.system == 'emscripten':
+ self.suffix = 'js'
elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('arm') or
'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('arm')):
self.suffix = 'axf'