Makefile: Disable undefined-optimized and add -fno-builtin

Suppress the SDLLVM specific compiler warning (undefined optimized)
for the compilation to pass. Also add -fno-builtin such that the
build doesn't pickup any compiler provided built-in functions.

Change-Id: I9507600a9286ec6aff42160d2d77733594b891de
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This commit is contained in:
Raghavendra Rao Ananta 2019-03-18 09:43:13 -07:00
parent 1210d2329b
commit a2a31f1ddc

View File

@ -744,6 +744,8 @@ KBUILD_CFLAGS += -Wno-tautological-compare
# source of a reference will be _MergedGlobals and not on of the whitelisted names.
# See modpost pattern 2
KBUILD_CFLAGS += -mno-global-merge
KBUILD_CFLAGS += $(call cc-disable-warning, undefined-optimized)
KBUILD_CFLAGS += -fno-builtin
else
# These warnings generated too much noise in a regular build.