ANDROID: arm64: kbuild: only specify code model with LTO for
authorSami Tolvanen <samitolvanen@google.com>
Mon, 1 Oct 2018 23:21:22 +0000 (16:21 -0700)
committerStricted <info@stricted.net>
Sun, 3 May 2020 04:36:25 +0000 (04:36 +0000)
commit98ea47bbcd8dc23300547d00c9cec03abfc2fed3
tree15611fbc63d82b8362575eacf81fa0f4f60e08bd
parent86720406ae312d7e540c4ae7e687cd00433cfa9f
ANDROID: arm64: kbuild: only specify code model with LTO for
 modules

This fixes CONFIG_LTO_CLANG for LLVM >= r334571 where LLVMgold actually
started respecting the code model flag.

Bug: 116819139
Bug: 119418330
Test: builds with LLVM r334571, boots on a device, all modules load
Change-Id: I1af9d24ed1b789a40ac1e85bd00e176ff8a68aa5
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Miguel de Dios <migueldedios@google.com>
arch/arm64/Makefile