Commit 2ca7f6ca authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

UPSTREAM: Makefile: reuse CC_VERSION_TEXT



I noticed we're invoking $(CC) via $(shell) more than once to check the
version.  Let's reuse the first string captured in $CC_VERSION_TEXT.

Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
[masahiro.yamada:
CC_VERSION_TEXT is assigned by = instead of :=, so this $(shell ) is
evaluated multiple times anyway. The number of $(CC) invocations will
be still the same. Replacing 'grep' with the built-in $(findstring )
will give real performance benefit.]
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit db07562a)
Bug: 209655537
Change-Id: Ib8745c014472a9d63e51e98f9474cced778d57df
parent 870681ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment