mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
toolchain/lto: enable lto flags only on GNU toolchain
Some commercial customized toolchains do not support these options Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
+6
-2
@@ -24,8 +24,12 @@ CSRCS += kasan.c
|
||||
|
||||
# Disable kernel-address in mm subsystem
|
||||
|
||||
CFLAGS += -fno-sanitize=kernel-address
|
||||
CFLAGS += -fno-lto
|
||||
ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y)
|
||||
CFLAGS += -fno-sanitize=kernel-address
|
||||
ifeq ($(CONFIG_LTO_NONE),n)
|
||||
CFLAGS += -fno-lto
|
||||
endif
|
||||
endif
|
||||
|
||||
# Add the core heap directory to the build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user