mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
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:
parent
1210d2329b
commit
a2a31f1ddc
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue