config: select KERNEL_WERROR if building with default GCC version
[openwrt/staging/stintel.git] / toolchain / gcc / Config.in
index 9156f9c26356848f598e423429f1af6fe1930dc1..fd98914075524cdb4e6fd3b479bc30e120d9eb66 100644 (file)
@@ -2,7 +2,7 @@
 
 choice
        prompt "GCC compiler Version" if TOOLCHAINOPTS
-       default GCC_USE_VERSION_12
+       default GCC_USE_VERSION_13
        help
          Select the version of gcc you wish to use.
 
@@ -16,6 +16,11 @@ choice
                bool "gcc 13.x"
 endchoice
 
+config GCC_USE_DEFAULT_VERSION
+       bool
+       default y if !TOOLCHAINOPTS || GCC_USE_VERSION_13
+       imply KERNEL_WERROR
+
 config GCC_USE_GRAPHITE
        bool
        prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS