mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
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:
committed by
Xiang Xiao
parent
2a99490ed6
commit
bf70cd2bce
@@ -309,7 +309,7 @@ else
|
|||||||
# Wrong warning array subscript [0] is outside array bounds:
|
# Wrong warning array subscript [0] is outside array bounds:
|
||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
# 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
|
ARCHOPTIMIZATION += --param=min-pagesize=0
|
||||||
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
||||||
LDFLAGS += --no-warn-rwx-segments
|
LDFLAGS += --no-warn-rwx-segments
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ endif
|
|||||||
CXXFLAGS += -Wno-shadow -Wno-sign-compare
|
CXXFLAGS += -Wno-shadow -Wno-sign-compare
|
||||||
CXXFLAGS += -Wno-attributes -Wno-deprecated-declarations
|
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
|
CXXFLAGS += -Wno-maybe-uninitialized -Wno-alloc-size-larger-than
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user