diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-19 21:56:00 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-08-05 19:31:32 +0300 |
| commit | f41bdae36861baa8be541af8273adc5b4b94ec48 (patch) | |
| tree | 9334ac78c12e5505592dcff7f6f5c32c999ee4fb /mesonbuild/build.py | |
| parent | ddbf60f86da4ece3d407fe3b3e38ff45e34f561e (diff) | |
| download | meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.gz | |
Add basic Webassembly support via Emscripten.
Diffstat (limited to 'mesonbuild/build.py')
| -rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index d5814ffd8..b77995ac2 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' |
