QcomModulePkg: Enable the sdllvm analyze under a flag
Enable the --compile-and-analyze only when SDLLVM toolchain is used.
Change-Id: I18809c63b0d585fc7bb0cfea788f82290d2eda33
diff --git a/makefile b/makefile
index d36115f..94a36cc 100644
--- a/makefile
+++ b/makefile
@@ -55,6 +55,16 @@
ENABLE_LE_VARIANT := 0
endif
+ifeq "$(ABL_USE_SDLLVM)" "true"
+ SDLLVM_COMPILE_ANALYZE := --compile-and-analyze
+ SDLLVM_ANALYZE_REPORT := $(BUILD_REPORT_DIR)
+else
+ SDLLVM_COMPILE_ANALYZE :=
+ SDLLVM_ANALYZE_REPORT :=
+endif
+export SDLLVM_COMPILE_ANALYZE := $(SDLLVM_COMPILE_ANALYZE)
+export SDLLVM_ANALYZE_REPORT := $(SDLLVM_ANALYZE_REPORT)
+
.PHONY: all cleanall
all: ABL_FV_ELF