[PATCH 06/39] Remove Clang /usr/include/tgmath.h dependency
Sam James
sam@gentoo.org
Sun Dec 22 02:45:12 GMT 2024
"H.J. Lu" <hjl.tools@gmail.com> writes:
> Remove the /usr/include/tgmath.h dependency generated by Clang even though
> Clang never reads /usr/include/tgmath.h.
>
> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> ---
I think this is a bit gross but that rule is already gross, so OK.
Please verify that diffing the depfile really only removes undesirable
parts. If you have, then:
Reviewed-by: Sam James <sam@gentoo.org>
> Makerules | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/Makerules b/Makerules
> index 275110dda8..c8b54f7d9a 100644
> --- a/Makerules
> +++ b/Makerules
> @@ -469,9 +469,13 @@ S-CPPFLAGS = -DASSEMBLER $(asm-CPPFLAGS)
>
> ifneq (,$(objpfx))
> # Continuation lines here are dangerous because they introduce spaces!
> +# Also remove the /usr/include/tgmath.h dependency generated by Clang
> +# even though Clang never reads /usr/include/tgmath.h.
> define sed-remove-objpfx
> -e 's@ $(subst .,\.,$(subst @,\@,$(common-objpfx)))@ $$(common-objpfx)@g' \
> --e 's@^$(subst .,\.,$(subst @,\@,$(common-objpfx)))@$$(common-objpfx)@g'
> +-e 's@^$(subst .,\.,$(subst @,\@,$(common-objpfx)))@$$(common-objpfx)@g' \
> +-e 's@/usr/include/tgmath.h:@@' \
> +-e 's@ /usr/include/tgmath.h@@'
> endef
> endif
>
More information about the Libc-alpha
mailing list