File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ string(REGEX MATCH "\\+\\+.* ([0-9]+)\\.[0-9]+" GCC_VERSION_REGEX
68
68
"${GCC_VERSION_OUTPUT} " )
69
69
set (GCCVER ${CMAKE_MATCH_1} )
70
70
71
- if (GCCVER EQUAL 12 )
71
+ if (GCCVER GREATER_EQUAL 12 )
72
72
add_compile_options (--param=min-pagesize=0 )
73
73
if (CONFIG_ARCH_RAMFUNCS )
74
74
add_link_options (-Wl,--no-warn-rwx-segments )
Original file line number Diff line number Diff line change 309
309
# Wrong warning array subscript [0] is outside array bounds:
310
310
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
311
311
312
- ifeq ($(GCCVER),12 )
312
+ ifeq ($(shell expr $( GCCVER) \>= 12), 1 )
313
313
ARCHOPTIMIZATION += --param=min-pagesize=0
314
314
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
315
315
LDFLAGS += --no-warn-rwx-segments
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ list(APPEND SRCS ${SRCSTMP})
95
95
set (FLAGS -Wno-attributes -Wno-deprecated-declarations -Wno-shadow
96
96
-Wno-sign-compare )
97
97
98
- if (GCCVER EQUAL 12 )
98
+ if (GCCVER GREATER_EQUAL 12 )
99
99
list (APPEND FLAGS -Wno-maybe-uninitialized -Wno-alloc-size-larger-than )
100
100
endif ()
101
101
You can’t perform that action at this time.
0 commit comments