anchao commented on code in PR #9072: URL: https://github.com/apache/nuttx/pull/9072#discussion_r1174510783
########## arch/arm/src/common/Toolchain.defs: ########## @@ -232,9 +232,11 @@ else # Wrong warning array subscript [0] is outside array bounds: # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 - GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/') + ifeq ($(GCCVER),) + export GCCVER := $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/') Review Comment: Avoid calling multiple shells repeatedly, it is enough to obtain the gcc version once -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
