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

Method can_use

tools/system_libs.py:1477–1484  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1475 return cmd
1476
1477 def can_use(self):
1478 # Because libc_optz overrides parts of libc, it is not compatible with
1479 # dynamic linking which uses --whole-archive. In addition,
1480 # EMCC_FORCE_STDLIBS can have a similar effect of forcing all libraries.
1481 # In both cases, the build is not one that is hyper-focused on code size,
1482 # and so optz is not that important.
1483 return super().can_use() and settings.SHRINK_LEVEL >= 2 and \
1484 not settings.LINKABLE and 'EMCC_FORCE_STDLIBS' not in os.environ
1485
1486
1487class libprintf_long_double(libc):

Callers

nothing calls this directly

Calls 1

can_useMethod · 0.45

Tested by

no test coverage detected