audk/BaseTools/Source/C/DevicePath
Rebecca Cran 728ff1da33 BaseTools: Allow users to build with clang using CC=clang CXX=clang++
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
..
DevicePath.c BaseTools: Increase the DevicePath length for support more PCD value. 2021-12-09 00:43:16 +00:00
DevicePathFromText.c BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
DevicePathUtilities.c BaseTools: Remove duplicated words in C tools 2022-10-16 04:21:29 +00:00
GNUmakefile BaseTools: Allow users to build with clang using CC=clang CXX=clang++ 2023-04-05 15:44:48 +00:00
Makefile BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
UefiDevicePathLib.c BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
UefiDevicePathLib.h BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00