audk/BaseTools/Source/Python/Workspace
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
..
BuildClassObject.py BaseTools: Remove Makefile/MakefileName fields 2021-09-29 14:31:37 +00:00
DecBuildData.py BaseTools: Enable the flag to treat dynamic pcd as dynamicEx 2021-07-12 07:40:07 +00:00
DscBuildData.py BaseTools: Allow users to specify compiler to use with make CC= CXX= 2023-04-05 15:44:48 +00:00
InfBuildData.py BaseTools: INF should use latest Pcd value instead of default value 2022-07-24 06:46:33 +00:00
MetaDataTable.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
MetaFileCommentParser.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
MetaFileParser.py BaseTools: Add the FeatureFlagExpression usage to the Source Section 2022-03-26 00:59:18 +00:00
MetaFileTable.py BaseTools: Correct report the line number in INF file issue 2020-12-22 02:21:26 +00:00
WorkspaceCommon.py BaseTools: output the intermediate library instance when error occurs 2022-06-16 12:18:07 +00:00
WorkspaceDatabase.py BaseTools: Remove the file timestamp checking during parsing 2020-07-21 04:12:32 +00:00
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00