| 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 | |
| 1487 | class libprintf_long_double(libc): |