toolchain: fix selecting older gcc versions for x86
[openwrt/openwrt.git] / toolchain / gcc / Config.version
index 2fc50827d26b975a2768b1abe3758fffaeb001f6..ef47fb419dc085e3955444c0cbc5537c27641e00 100644 (file)
@@ -4,7 +4,8 @@ config GCC_VERSION_7_1_ARC
 
 config GCC_VERSION_7
        default y if GCC_USE_VERSION_7
-       default y if x86_64 || i386
+       default y if (!TOOLCHAINOPTS && x86_64)
+       default y if (!TOOLCHAINOPTS && i386)
        bool
 
 config GCC_VERSION