summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
diff options
context:
space:
mode:
authorLiu, Zhiguang <Zhiguang.Liu@intel.com>2020-07-06 14:38:21 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-07-21 04:12:32 +0000
commit02539e900854488343a1efa435d4dded1ddd66a2 (patch)
treeea9455ad3ac1e4245026f907d54d01c2ee56a6b1 /BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
parentb3ee616e67d3fac426f80a4f3f2d7738c6fef779 (diff)
downloadedk2-02539e900854488343a1efa435d4dded1ddd66a2.tar.gz
edk2-02539e900854488343a1efa435d4dded1ddd66a2.tar.bz2
edk2-02539e900854488343a1efa435d4dded1ddd66a2.zip
Using LLVM compiler set to build BaseTools in Linux
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2842 To use LLVM to build BaseTools, first set the CLANG_BIN environment value, and add "CXX=llvm" to choose LLVM compiler set when using make command. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Yuwei Chen<yuwei.chen@intel.com>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile')
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile b/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
index 8f2cc78c59..559b1c99f1 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
+++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
@@ -164,7 +164,11 @@ PCCTS_H=../h
#
# UNIX (default)
#
+ifeq ($(CXX), llvm)
+BUILD_CC?=$(CLANG_BIN)clang
+else
BUILD_CC?=gcc
+endif
COPT=-O
ANTLR=${BIN_DIR}/antlr
DLG=${BIN_DIR}/dlg