MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / serialize_settings

Method serialize_settings

test/common.py:859–870  ·  view source on GitHub ↗
(self, compile_only=False)

Source from the content-addressed store, hash-verified

857 self.settings_mods.pop(key, None)
858
859 def serialize_settings(self, compile_only=False):
860 ret = []
861 for key, value in self.settings_mods.items():
862 if compile_only and key not in COMPILE_TIME_SETTINGS:
863 continue
864 if value == 1:
865 ret.append(f'-s{key}')
866 elif type(value) is list:
867 ret.append(f'-s{key}={",".join(value)}')
868 else:
869 ret.append(f'-s{key}={value}')
870 return ret
871
872 def get_dir(self):
873 return self.working_dir

Callers 1

get_cflagsMethod · 0.95

Calls 3

appendMethod · 0.80
typeEnum · 0.50
joinMethod · 0.45

Tested by

no test coverage detected