You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/04/23 05:18:41 UTC
[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #9072: arch/arm: relax compiler check for workaround with "GCC 12.2"
pkarashchenko commented on code in PR #9072:
URL: https://github.com/apache/nuttx/pull/9072#discussion_r1174509825
##########
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:
Why export is needed?
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org