From 9d6a9b6f516e650630d94012cb7e898df5301189 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 13 Nov 2015 11:35:41 +0000 Subject: [PATCH] gcc: set the isl/cloog prefix when graphite is enabled, disable it explicitly if it is disabled in the config Signed-off-by: Felix Fietkau SVN-Revision: 47465 --- toolchain/gcc/common.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 5214765d6b..0ac7de19f5 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -108,6 +108,16 @@ ifdef CONFIG_USE_UCLIBC export glibcxx_cv_c99_math_tr1=no endif +ifdef CONFIG_GCC_USE_GRAPHITE + ifdef CONFIG_GCC_VERSION_4_8 + GRAPHITE_CONFIGURE=--with-cloog=$(REAL_STAGING_DIR_HOST) + else + GRAPHITE_CONFIGURE=--with-isl=$(REAL_STAGING_DIR_HOST) + endif +else + GRAPHITE_CONFIGURE=--without-isl --without-cloog +endif + GCC_CONFIGURE:= \ SHELL="$(BASH)" \ $(if $(shell gcc --version 2>&1 | grep LLVM), \ -- 2.30.2