package/gcc: introduce BR2_GCC_SUPPORTS_LIBCILKRTS
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 21 Oct 2018 11:54:14 +0000 (13:54 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 21 Oct 2018 14:26:54 +0000 (16:26 +0200)
commit6300de5464989f2dd07ee86a3589cd05e5184bb0
tree67cf587c932a3d2be797fc5f7bbb63ec815b624c
parent076fd27da721971f44f681d5a06f68496371d96a
package/gcc: introduce BR2_GCC_SUPPORTS_LIBCILKRTS

libcilkrts was introduced in gcc 4.9, and removed in gcc
8.x. Therefore, it does not make sense to pass --disable-libcilkrts in
gcc 8.x and higher. This commit introduces BR2_GCC_SUPPORTS_LIBCILKRTS
that allows the makefile code to know if the selected gcc version
supports libcilkrts or not.

This new option mainly allows to annotate the fact that libcilkrts
exists in gcc [4.9, 7] and that once we have dropped support for those
gcc versions, the libcilkrts related logic can be removed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gcc/Config.in.host
package/gcc/gcc-final/gcc-final.mk