diff --git a/setup.py b/setup.py index c076f1ba29d07..8d743a4e697d9 100644 --- a/setup.py +++ b/setup.py @@ -136,6 +136,10 @@ def run(self): f'-DTI_VERSION_PATCH={TI_VERSION_PATCH}', ] + emscriptened = os.getenv('TI_EMSCRIPTENED', '0') in ('1', 'ON') + if emscriptened: + cmake_args += ['-DTI_EMSCRIPTENED=ON'] + if shutil.which('ninja'): cmake_args += ['-GNinja']