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)
| 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.""" |