audk/BaseTools/Source/C/VfrCompile/Pccts/dlg
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
..
DlgDDK.mak BaseTools/Source/C: Use /Z7 instead of /Zi for host tools 2022-11-08 18:29:51 +00:00
DlgMS.mak BaseTools/Source/C: Use /Z7 instead of /Zi for host tools 2022-11-08 18:29:51 +00:00
DlgPPC.mak
automata.c BaseTools: Various typo 2019-02-14 10:02:28 +08:00
dlg.1
dlg.h BaseTools: Various typo 2019-02-14 10:02:28 +08:00
dlg.r BaseTools: Various typo 2019-02-14 10:02:28 +08:00
dlg1.txt
dlg_a.c
dlg_p.c BaseTools: Various typo 2019-02-14 10:02:28 +08:00
dlg_p.g BaseTools: Various typo 2019-02-14 10:02:28 +08:00
err.c
main.c
makefile BaseTools: Allow users to build with clang using CC=clang CXX=clang++ 2023-04-05 15:44:48 +00:00
makefile.cygwin
makefile1
mode.h
output.c
parser.dlg
relabel.c BaseTools: Various typo 2019-02-14 10:02:28 +08:00
stdpccts.h
support.c
tokens.h