Commit 8eff127
committed
[ARM][Compiler-RT] Add optional exclusion of libc provided ARM AEABI builtins from compiler-rt.
This patch introduces a new optional CMake flag:
COMPILER_RT_EXCLUDE_LIBC_PROVIDED_ARM_AEABI_BUILTINS
When enabled, this flag excludes the following ARM AEABI
memory function implementations from the compiler-rt build:
__aeabi_memset
__aeabi_memcpy
__aeabi_memmove
These functions are already provided by standard C
libraries like glibc, newlib, and picolibc, so excluding
them avoids duplicate symbol definitions and reduces
unnecessary code duplication.
Note: __aeabi_memcmp and other AEABI functions are not
excluded, as they are not defined in all standard libraries.
This flag is OFF by default, meaning all AEABI memory builtins
will still be built unless explicitly excluded.
This change is useful for environments where libc provides
runtime routines, supporting more minimal, conflict free builds.1 parent 6c4dd8d commit 8eff127
1 file changed
+42
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
| |||
450 | 453 | | |
451 | 454 | | |
452 | 455 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
472 | 495 | | |
473 | 496 | | |
474 | 497 | | |
| |||
0 commit comments