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

Method get_cflags

tools/system_libs.py:596–606  ·  view source on GitHub ↗

Return the list emcc flags to use when building this variation of the library. Override and add any flags as needed to handle new variations.

(self)

Source from the content-addressed store, hash-verified

594 return result
595
596 def get_cflags(self):
597 """Return the list emcc flags to use when building this variation of the library.
598
599 Override and add any flags as needed to handle new variations.
600 """
601 cflags = self._inherit_list('cflags')
602 cflags += get_base_cflags(self.build_dir, force_object_files=self.force_object_files)
603
604 if self.includes:
605 cflags += ['-I' + utils.path_from_root(i) for i in self._inherit_list('includes')]
606 return cflags
607
608 def get_base_name_prefix(self):
609 """Return the base name of the library without any suffixes."""

Callers 2

generate_ninjaMethod · 0.95
build_objectsMethod · 0.95

Calls 2

_inherit_listMethod · 0.95
get_base_cflagsFunction · 0.85

Tested by

no test coverage detected