File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ ifeq ($(CONFIG_X86_32),y)
137
137
include $(srctree ) /arch/x86/Makefile_32.cpu
138
138
KBUILD_CFLAGS += $(cflags-y )
139
139
140
- ifeq ($(CONFIG_CC_IS_CLANG ),y)
140
+ ifneq ($(call clang-min-version, 160000 ),y)
141
141
# https://github.com/llvm/llvm-project/issues/53645
142
142
KBUILD_CFLAGS += -ffreestanding
143
143
endif
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ config FORTIFY_SOURCE
286
286
bool "Harden common str/mem functions against buffer overflows"
287
287
depends on ARCH_HAS_FORTIFY_SOURCE
288
288
# https://github.com/llvm/llvm-project/issues/53645
289
- depends on !CC_IS_CLANG || !X86_32
289
+ depends on !X86_32 || !CC_IS_CLANG || CLANG_VERSION >= 160000
290
290
help
291
291
Detect overflows of buffers in common string and memory functions
292
292
where the compiler can determine and validate the buffer sizes.
You can’t perform that action at this time.
0 commit comments