aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-12-20 00:58:19 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2023-01-09 00:23:41 +0100
commita58b29ded7a6d3209aad1d2ff30b5a38d692a45f (patch)
tree82bb1283bb191dcdf61349b38e503366ae406846 /toolchain
parent25223b22c86ab07aa174e0285784f591f145a825 (diff)
downloadupstream-a58b29ded7a6d3209aad1d2ff30b5a38d692a45f.tar.gz
upstream-a58b29ded7a6d3209aad1d2ff30b5a38d692a45f.tar.bz2
upstream-a58b29ded7a6d3209aad1d2ff30b5a38d692a45f.zip
toolchain/gcc: Fix GCC version check
The version check which sets GCC_VERSION_FILE to the correct value only worked when the advanced options menu was active and not when it was not active. Thank you Tony Butler for the fix. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/common.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index 6661b0aa38..ea2e2634b6 100644
--- a/toolchain/gcc/common.mk
+++ b/toolchain/gcc/common.mk
@@ -178,7 +178,7 @@ define Host/SetToolchainInfo
endef
-ifdef CONFIG_GCC_USE_VERSION_12
+ifeq ($(GCC_MAJOR_VERSION),12)
GCC_VERSION_FILE:=gcc/genversion.cc
else
GCC_VERSION_FILE:=gcc/version.c