Paul Spooren bd4d3cd101 toolchain,build: prefer -ffile-prefix-map for gcc-8+
-ffile-prefix-map=OLD=NEW is an alias for both -fdebug-prefix-map and
-fmacro-prefix-map and is available since GCC 8.

Co-Developed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Paul Spooren <mail@aparcar.org>
[refactored into separate commit]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-10-09 09:13:44 +02:00

20 lines
369 B
Plaintext

config GCC_VERSION_5
default y if GCC_USE_VERSION_5
bool
config GCC_VERSION_8
default y if GCC_USE_VERSION_8
default y if arc && !GCC_USE_VERSION_9
bool
config GCC_VERSION_9
default y if GCC_USE_VERSION_9
bool
config GCC_VERSION
string
default "5.5.0" if GCC_VERSION_5
default "8.3.0" if GCC_VERSION_8
default "9.2.0" if GCC_VERSION_9
default "7.4.0"