mirror_edk2/BaseTools/Source/C
Rebecca Cran 206168e83f BaseTools: Allow users to specify compiler to use with make CC= CXX=
In https://bugzilla.tianocore.org/show_bug.cgi?id=2842 clang support was
added by having users specify "make CXX=llvm" when building BaseTools.

The Makefile then sees that and sets CC=$(CLANG_BIN)clang and
CXX=$(CLANG_BIN)clang++. That requires that the executables 'clang' and
'clang++' exist and for example aren't named 'clang-17' and
'clang++-17'. Also, it's an unusual way of specifying the compiler,
since many users will expect to be able to override CC and CXX on the
make command line.

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++'.

Signed-off-by: Rebecca Cran <rebecca@quicinc.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-04-05 15:44:48 +00:00
..
BrotliCompress BaseTools: Update brotli submodule 2022-02-15 02:13:32 +00:00
Common BaseTools: Replace duplicate __PcdSet prototype with __PcdGet 2023-03-24 14:52:14 +00:00
DevicePath BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
EfiRom BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
GenCrc32 BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
GenFfs BaseTools: fix gcc12 warning 2022-03-28 00:51:30 +00:00
GenFv BaseTools: remove useless dependency on libuuid 2023-02-07 03:10:41 +00:00
GenFw BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
GenSec BaseTools: Fix wrong type of arguments to formatting functions 2022-11-09 14:53:10 +00:00
Include BaseTools: Add LoongArch64 binding. 2022-10-14 02:16:33 +00:00
LzmaCompress BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
Makefiles BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
PyEfiCompressor BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
TianoCompress BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
VfrCompile BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
VolInfo BaseTools/VolInfo: Update file and section type strings 2022-10-02 05:34:38 +00:00
GNUmakefile BaseTools: Add LoongArch64 binding. 2022-10-14 02:16:33 +00:00
Makefile BaseTools: Convert Split tool to python 2021-01-21 10:19:09 +00:00