audk/BaseTools/Source/C/LzmaCompress
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
..
Sdk BaseTools: fix gcc12 warning 2022-03-28 00:51:30 +00:00
GNUmakefile BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
LZMA-SDK-README.txt BaseTools LzmaCompress: Update LZMA to new 19.00 version 2021-01-08 10:03:53 +00:00
LzmaCompress.c BaseTools LzmaCompress: Update LZMA to new 19.00 version 2021-01-08 10:03:53 +00:00
LzmaF86Compress.bat BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Makefile BaseTools/LzmaCompress: Add two switches 2019-09-23 22:28:49 +08:00