From: "Rebecca Cran" <rebecca@bsdio.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: devel@edk2.groups.io, Andrew Fish <afish@apple.com>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Michael D Kinney <michael.d.kinney@intel.com>,
Bob Feng <bob.c.feng@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Yuwei Chen <yuwei.chen@intel.com>
Subject: Re: [edk2-devel] [PATCH 1/3] BaseTools: Allow users to specify compiler to use with make CC= CXX=
Date: Mon, 20 Mar 2023 07:13:22 -0600 [thread overview]
Message-ID: <abb89482-b1d8-4006-0cda-695b3fde64f7@bsdio.com> (raw)
In-Reply-To: <20230320093504.fgwcnencpk7a6ehx@sirius.home.kraxel.org>
Sorry, I don't think I saw a suggestion from you to not set CC - though
I may have missed emails since this patch series was sent from the email
of my former employer.
Marvin did suggest that though, so I can certainly add another patch to
the series to do that.
--
Rebecca Cran
On 3/20/23 3:35 AM, Gerd Hoffmann wrote:
> On Fri, Mar 17, 2023 at 04:43:24AM -0600, Rebecca Cran wrote:
>> On 3/15/23 4:07 AM, Gerd Hoffmann wrote:
>>>> Rework the BaseTools Makefiles removing the 'BUILD_' prefix (BUILD_CC
>>>> and BUILD_CXX) and using the standard name 'LDFLAGS' instead of
>>>> 'LFLAGS'. This allows clang to be used by running
>>>> 'make -C BaseTools CC=clang CXX=clang++'.
>>> Hmm, not sure this is a good idea. I suspect there was some reason to
>>> use BUILD_CC instead of CC in the first place ...
>> It looks like the change to use BUILD_CC was introduced by Liming in:
>>
>>
>> BaseTools GnuMakefile: Update GCC Flags to the specific one with BUILD_
>> prefix
>>
>> To avoid the conflict with the default GCC flag name, BUILD_ prefix is
>> added.
>>
>> Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
>> Cc: Yonghong Zhu <yonghong.zhu@intel.com>
>> Contributed-under: TianoCore Contribution Agreement 1.0
>> Signed-off-by: Liming Gao <liming.gao@intel.com>
>> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
>> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
>>
>>
>> I don't understand how that would help, and I'm wondering if it was perhaps
>> the result of a misunderstanding.
> Hmm, neither the commit message nor the patch itself have any hints of
> actual problems fixed. The "conflict" notion indeed hints this might
> have been a misunderstanding.
>
> So, going back to just use CC + CFLAGS + friends looks fine to me.
>
> The suggestion to simply not set CC stands stands.
>
> take care,
> Gerd
>
next prev parent reply other threads:[~2023-03-20 13:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 3:50 [PATCH 0/3] BaseTools: allow users to override CC and CXX on the make command line Rebecca Cran
2023-02-17 3:50 ` [PATCH 1/3] BaseTools: Allow users to specify compiler to use with make CC= CXX= Rebecca Cran
2023-03-15 10:07 ` [edk2-devel] " Gerd Hoffmann
2023-03-17 10:43 ` Rebecca Cran
2023-03-20 9:35 ` Gerd Hoffmann
2023-03-20 13:13 ` Rebecca Cran [this message]
2023-02-17 3:51 ` [PATCH 2/3] BaseTools: Improve detection of users wanting to build using clang Rebecca Cran
2023-03-15 10:11 ` [edk2-devel] " Gerd Hoffmann
2023-02-17 3:51 ` [PATCH 3/3] BaseTools: Build against C++14 when building with clang Rebecca Cran
2023-03-15 10:11 ` [edk2-devel] " Gerd Hoffmann
2023-03-09 15:47 ` [edk2-devel] [PATCH 0/3] BaseTools: allow users to override CC and CXX on the make command line Rebecca Cran
[not found] ` <174ACADCDC6439C2.24021@groups.io>
2023-03-14 16:16 ` Rebecca Cran
2023-03-23 1:09 ` 回复: " gaoliming
[not found] ` <174EE719E87C3CB3.19937@groups.io>
2023-03-24 4:57 ` gaoliming
2023-03-24 21:39 ` Rebecca Cran
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-list 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=abb89482-b1d8-4006-0cda-695b3fde64f7@bsdio.com \
--to=devel@edk2.groups.io \
/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