From: Ionen Wolkens <ionen@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: toolchain@gentoo.org, Mike Gilbert <floppym@gentoo.org>
Subject: Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: avoid using tc-getCPP in compiler checks
Date: Wed, 5 Feb 2025 14:06:39 -0500 [thread overview]
Message-ID: <Z6O2vxQmf42xEfKL@eversor> (raw)
In-Reply-To: <20250205181010.1968506-1-floppym@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]
On Wed, Feb 05, 2025 at 01:10:10PM -0500, Mike Gilbert wrote:
> We usually want to invoke cc -E rather than cpp directly. We should not
> rely on the quirk of tc-getCPP defaulting to "cc -E" when CPP is unset.
I think it's a good change, but just to note it could break things
that relied on CPP being what's used.
Aka these don't have a proper way to say "test this compiler" and,
given it uses CPP, it's what I ended up setting:
CPP="${KERNEL_CC} -E" tc-is-clang ...
That's from nvidia-drivers ebuilds, which I'll fix real soon so no
need to worry about these. But I don't know what else may have done
this, not that I think it's going to be common.
I did something similar in linux-mod-r1.eclass but I took more
precaution there so it's not affected:
# for toolchain-funcs, uses CPP > CC but set both not to make assumptions
local CC=${KERNEL_CC} CPP="${KERNEL_CC} -E" LD=${KERNEL_LD}
I could cleanup the CPP bit if this is merged though. That it doesn't
use CC was confusing if anything thus needing a comment to explain
why it's being set.
Hopefully haven't forgot anything else I did, think wine & mingw things
are fine.
--
ionen
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2025-02-05 19:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 18:10 [gentoo-dev] [PATCH] toolchain-funcs.eclass: avoid using tc-getCPP in compiler checks Mike Gilbert
2025-02-05 18:39 ` James Le Cuirot
2025-02-05 19:06 ` Ionen Wolkens [this message]
2025-02-05 19:41 ` Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6O2vxQmf42xEfKL@eversor \
--to=ionen@gentoo.org \
--cc=floppym@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=toolchain@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox