sdm: LLVM SA enablement
CRs-Fixed: 2077191
Change-Id: I23066befa5034523788a78edac9b335494d43019
diff --git a/common.mk b/common.mk
index 2318165..83d06c6 100644
--- a/common.mk
+++ b/common.mk
@@ -36,6 +36,10 @@
common_flags += -DUSER_DEBUG
endif
+ifeq ($(LLVM_SA), true)
+ common_flags += --compile-and-analyze --analyzer-perf --analyzer-Werror
+endif
+
common_includes := system/core/base/include
CHECK_VERSION_LE = $(shell if [ $(1) -le $(2) ] ; then echo true ; else echo false ; fi)
PLATFORM_SDK_NOUGAT = 25