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

Method get_usable_variations

tools/system_libs.py:688–700  ·  view source on GitHub ↗

Get all libraries suitable for the current invocation of emscripten. This returns a dictionary of simple names to Library objects.

(cls)

Source from the content-addressed store, hash-verified

686
687 @classmethod
688 def get_usable_variations(cls):
689 """Get all libraries suitable for the current invocation of emscripten.
690
691 This returns a dictionary of simple names to Library objects.
692 """
693 if not hasattr(cls, 'usable_variations'):
694 cls.usable_variations = {}
695 for subclass in cls.get_inheritance_tree():
696 if subclass.name:
697 library = subclass.get_default_variation()
698 if library.can_build() and library.can_use():
699 cls.usable_variations[subclass.name] = library
700 return cls.usable_variations
701
702
703class MTLibrary(Library):

Callers 3

mainFunction · 0.80
process_librariesFunction · 0.80
get_libs_to_linkFunction · 0.80

Calls 4

get_inheritance_treeMethod · 0.80
get_default_variationMethod · 0.45
can_buildMethod · 0.45
can_useMethod · 0.45

Tested by

no test coverage detected