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

Method customize_build_cmd

tools/system_libs.py:558–564  ·  view source on GitHub ↗

Return a build command specialized for the given filename. This allows libraries to customize the build command used on per-file basis. For example, libc uses this to replace -Oz with -O2 for some subset of files.

(self, cmd, _filename)

Source from the content-addressed store, hash-verified

556 return objects
557
558 def customize_build_cmd(self, cmd, _filename):
559 """Return a build command specialized for the given filename.
560
561 This allows libraries to customize the build command used on per-file basis.
562 For example, libc uses this to replace -Oz with -O2 for some subset of files.
563 """
564 return cmd
565
566 def do_build(self, out_filename, generate_only=False):
567 """Build the library and returns the path to the file."""

Callers 1

build_objectsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected