Commit 4cceea1
[libc][bazel] Remove customization from several libc BUILD rules. (#121843)
Get rid of the following arguments to libc_support_library and
libc_function rules:
* `defines` (for raw_mutex.h) - it wasn't used correctly (e.g. didn't
provide actual value for spin count), and we can instead fallback to
defaults set in the header itself (or rely on library-level configure
options).
* `features` - there's no need to disable sanitization for a subset of
memory functions -- it generally should be the vendor / user
responsibility to control it (e.g. don't include instrumented libc
functions in the build, since they would be provided by sanitizer
runtimes instead).
* `local_defines` (for printf_parser) - no longer needed, since
LIBC_COPT_MOCK_ARG_LIST has been removed in
e0be78b
This also removes two ad-hoc BUILD rules (strcpy_sanitized and
printf_mock_parser) which are no longer needed and can be replaced by
strcpy and printf_parser, respectively.
Co-authored-by: Alexey Samsonov <[email protected]>1 parent 32d761b commit 4cceea1
File tree
2 files changed
+1
-56
lines changed- utils/bazel/llvm-project-overlay/libc
- test/src/string
2 files changed
+1
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | 1398 | | |
1403 | 1399 | | |
1404 | 1400 | | |
| |||
3594 | 3590 | | |
3595 | 3591 | | |
3596 | 3592 | | |
3597 | | - | |
3598 | | - | |
3599 | | - | |
3600 | | - | |
3601 | | - | |
3602 | | - | |
3603 | | - | |
3604 | 3593 | | |
3605 | 3594 | | |
3606 | 3595 | | |
| |||
3678 | 3667 | | |
3679 | 3668 | | |
3680 | 3669 | | |
3681 | | - | |
3682 | 3670 | | |
3683 | 3671 | | |
3684 | 3672 | | |
| |||
3690 | 3678 | | |
3691 | 3679 | | |
3692 | 3680 | | |
3693 | | - | |
3694 | 3681 | | |
3695 | 3682 | | |
3696 | 3683 | | |
| |||
3702 | 3689 | | |
3703 | 3690 | | |
3704 | 3691 | | |
3705 | | - | |
3706 | 3692 | | |
3707 | 3693 | | |
3708 | 3694 | | |
| |||
3714 | 3700 | | |
3715 | 3701 | | |
3716 | 3702 | | |
3717 | | - | |
3718 | 3703 | | |
3719 | 3704 | | |
3720 | 3705 | | |
| |||
3726 | 3711 | | |
3727 | 3712 | | |
3728 | 3713 | | |
3729 | | - | |
3730 | 3714 | | |
3731 | 3715 | | |
3732 | 3716 | | |
| |||
3737 | 3721 | | |
3738 | 3722 | | |
3739 | 3723 | | |
3740 | | - | |
3741 | 3724 | | |
3742 | 3725 | | |
3743 | 3726 | | |
| |||
3750 | 3733 | | |
3751 | 3734 | | |
3752 | 3735 | | |
3753 | | - | |
3754 | 3736 | | |
3755 | 3737 | | |
3756 | 3738 | | |
| |||
3762 | 3744 | | |
3763 | 3745 | | |
3764 | 3746 | | |
3765 | | - | |
3766 | 3747 | | |
3767 | 3748 | | |
3768 | 3749 | | |
| |||
3784 | 3765 | | |
3785 | 3766 | | |
3786 | 3767 | | |
3787 | | - | |
3788 | 3768 | | |
3789 | 3769 | | |
3790 | 3770 | | |
| |||
3795 | 3775 | | |
3796 | 3776 | | |
3797 | 3777 | | |
3798 | | - | |
3799 | | - | |
3800 | | - | |
3801 | | - | |
3802 | | - | |
3803 | | - | |
3804 | | - | |
3805 | | - | |
3806 | | - | |
3807 | | - | |
3808 | | - | |
3809 | | - | |
3810 | | - | |
3811 | | - | |
3812 | | - | |
3813 | 3778 | | |
3814 | 3779 | | |
3815 | 3780 | | |
| |||
4465 | 4430 | | |
4466 | 4431 | | |
4467 | 4432 | | |
4468 | | - | |
4469 | | - | |
4470 | | - | |
4471 | | - | |
4472 | | - | |
4473 | | - | |
4474 | | - | |
4475 | | - | |
4476 | | - | |
4477 | | - | |
4478 | | - | |
4479 | | - | |
4480 | | - | |
4481 | | - | |
4482 | | - | |
4483 | | - | |
4484 | | - | |
4485 | | - | |
4486 | | - | |
4487 | | - | |
4488 | 4433 | | |
4489 | 4434 | | |
4490 | 4435 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments