[edk2-devel] [PATCH 1/3] BaseTools: Allow users to specify compiler to use with make CC= CXX=
Gerd Hoffmann
kraxel at redhat.com
Mon Mar 20 09:35:04 UTC 2023
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 at intel.com>
> Cc: Yonghong Zhu <yonghong.zhu at intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Liming Gao <liming.gao at intel.com>
> Reviewed-by: Yonghong Zhu <yonghong.zhu at intel.com>
> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru at 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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#101416): https://edk2.groups.io/g/devel/message/101416
Mute This Topic: https://groups.io/mt/97022154/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list