bug/fix: Makefile expression error caused
expr: syntax error: unexpected argument "12" expr: syntax error: unexpected argument "12" Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
2a99490ed6
commit
bf70cd2bce
2 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ else
|
|||
# Wrong warning array subscript [0] is outside array bounds:
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||
|
||||
ifeq ($(shell expr $(GCCVER) \>= 12), 1)
|
||||
ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
|
||||
ARCHOPTIMIZATION += --param=min-pagesize=0
|
||||
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
||||
LDFLAGS += --no-warn-rwx-segments
|
||||
|
|
|
@ -61,7 +61,7 @@ endif
|
|||
CXXFLAGS += -Wno-shadow -Wno-sign-compare
|
||||
CXXFLAGS += -Wno-attributes -Wno-deprecated-declarations
|
||||
|
||||
ifeq ($(shell expr $(GCCVER) \>= 12), 1)
|
||||
ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
|
||||
CXXFLAGS += -Wno-maybe-uninitialized -Wno-alloc-size-larger-than
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue