commit | d9571c55b130798a521dabef7c7ac524a93b994c | [log] [tgz] |
---|---|---|
author | Bipin Ravi <bipin.ravi@arm.com> | Tue Mar 05 16:31:28 2024 +0100 |
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | Tue Mar 05 16:31:28 2024 +0100 |
tree | f23c09f22f2cbb3d868cefb16ea18827e01b6b8f | |
parent | 0a7a0bc098874129244830dcc527e087173e33ff [diff] | |
parent | 00416dcb0f5319a3106d1f86188f7516183e0b95 [diff] |
Merge "build: allow platform makefiles to configure `ENABLE_LTO`" into integration
diff --git a/Makefile b/Makefile index 603c8d9..ef570b2 100644 --- a/Makefile +++ b/Makefile
@@ -155,11 +155,9 @@ endif else ifeq ($($(ARCH)-cc-id),gnu-gcc) - ifeq ($(ENABLE_LTO),1) - # Enable LTO only for aarch64 - ifeq (${ARCH},aarch64) - LTO_CFLAGS = -flto - endif + # Enable LTO only for aarch64 + ifeq (${ARCH},aarch64) + LTO_CFLAGS = $(if $(filter-out 0,$(ENABLE_LTO)),-flto) endif endif #(clang)