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

Function add_library

tools/system_libs.py:2339–2348  ·  view source on GitHub ↗
(libname, whole_archive=False)

Source from the content-addressed store, hash-verified

2337 logger.debug(f'forcing stdlibs: {force_include}')
2338
2339 def add_library(libname, whole_archive=False):
2340 lib = system_libs_map[libname]
2341 if lib.name in already_included:
2342 return
2343 already_included.add(lib.name)
2344
2345 logger.debug('including %s (%s)' % (lib.name, lib.get_filename()))
2346
2347 need_whole_archive = lib.name in force_include and lib.get_ext() == '.a'
2348 libs_to_link.append((lib.get_link_flag(), whole_archive or need_whole_archive))
2349
2350 if not options.nostartfiles:
2351 if settings.PTHREADS:

Callers 3

get_libs_to_linkFunction · 0.85
add_forced_libsFunction · 0.85
add_sanitizer_libsFunction · 0.85

Calls 5

get_filenameMethod · 0.80
appendMethod · 0.80
get_link_flagMethod · 0.80
addMethod · 0.45
get_extMethod · 0.45

Tested by

no test coverage detected