summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/emscripten.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers/mixins/emscripten.py')
-rw-r--r--mesonbuild/compilers/mixins/emscripten.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/mesonbuild/compilers/mixins/emscripten.py b/mesonbuild/compilers/mixins/emscripten.py
index ee86ce4d3..10f4b25cc 100644
--- a/mesonbuild/compilers/mixins/emscripten.py
+++ b/mesonbuild/compilers/mixins/emscripten.py
@@ -18,7 +18,6 @@ import os.path
import typing as T
from ... import coredata
-from ...mesonlib import MesonException
if T.TYPE_CHECKING:
from ..environment import Environment
@@ -26,18 +25,6 @@ if T.TYPE_CHECKING:
class EmscriptenMixin:
- def get_option_link_args(self, options):
- return []
-
- def get_soname_args(self, *args, **kwargs):
- raise MesonException('Emscripten does not support shared libraries.')
-
- def get_allow_undefined_link_args(self) -> T.List[str]:
- return ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0']
-
- def get_linker_output_args(self, output: str) -> T.List[str]:
- return ['-o', output]
-
def _get_compile_output(self, dirname, mode):
# In pre-processor mode, the output is sent to stdout and discarded
if mode == 'preprocess':
@@ -54,13 +41,6 @@ class EmscriptenMixin:
def thread_flags(self, env: 'Environment') -> T.List[str]:
return ['-s', 'USE_PTHREADS=1']
- def thread_link_flags(self, env: 'Environment') -> T.List[str]:
- args = ['-s', 'USE_PTHREADS=1']
- count = env.coredata.compiler_options[self.for_machine]['{}_thread_count'.format(self.language)].value # type: int
- if count:
- args.extend(['-s', 'PTHREAD_POOL_SIZE={}'.format(count)])
- return args
-
def get_options(self):
opts = super().get_options()
opts.update({