Browse Source

dubhe: gcc: Enable ISL in GCC.

Signed-off-by: weiheng.cheng <weiheng.cheng@starfivetech.com>
weiheng.cheng 1 year ago
parent
commit
64a970947a

+ 4 - 4
recipes-devtools/gcc/gcc-12.1.inc

@@ -10,8 +10,8 @@ BINV = "12.1.0"
 
 FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
 
-DEPENDS =+ "mpfr gmp libmpc zlib flex-native"
-NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native flex-native zstd-native"
+DEPENDS =+ "mpfr gmp libmpc isl zlib flex-native "
+NATIVEDEPS = "mpfr-native gmp-native libmpc-native isl-native zlib-native flex-native zstd-native "
 
 LICENSE = "GPL-3.0-with-GCC-exception & GPL-3.0-only"
 
@@ -103,7 +103,7 @@ EXTRA_OECONF_BASE = "\
     --with-cloog=no \
     --enable-checking=release \
     --enable-cheaders=c_global \
-    --without-isl \
+    --with-isl \
 "
 
 EXTRA_OECONF_INITIAL = "\
@@ -115,7 +115,7 @@ EXTRA_OECONF_INITIAL = "\
     --disable-plugin \
     --enable-linker-build-id \
     --enable-decimal-float=no \
-    --without-isl \
+    --with-isl \
     --disable-libssp \
 "
 

+ 1 - 1
recipes-devtools/gcc/gcc-configure-common.inc

@@ -48,7 +48,7 @@ EXTRA_OECONF = "\
     --with-mpfr \
     --with-mpc \
     --enable-tls \
-    --without-isl \
+    --with-isl \
 "
 
 # glibc version is a minimum controlling whether features are enabled. 

+ 5 - 3
recipes-devtools/gcc/gcc-cross-canadian.inc

@@ -183,14 +183,16 @@ do_install () {
 }
 
 ELFUTILS = "nativesdk-elfutils"
-DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc ${ELFUTILS} nativesdk-zlib nativesdk-zstd"
-RDEPENDS:${PN} += "nativesdk-mpfr nativesdk-libmpc ${ELFUTILS}"
+DEPENDS += "nativesdk-gmp nativesdk-mpfr nativesdk-libmpc nativesdk-isl ${ELFUTILS} nativesdk-zlib nativesdk-zstd"
+RDEPENDS:${PN} += "nativesdk-mpfr nativesdk-libmpc nativesdk-isl ${ELFUTILS}"
 
 SYSTEMHEADERS = "${target_includedir}/"
 SYSTEMLIBS = "${target_base_libdir}/"
 SYSTEMLIBS1 = "${target_libdir}/"
 
-EXTRA_OECONF += "--enable-poison-system-directories"
+EXTRA_OECONF += "--enable-poison-system-directories \
+                 --with-isl=${STAGING_DIR_HOST}${SDKPATHNATIVE}${prefix_nativesdk} \
+                 "
 
 # gcc 4.7 needs -isystem
 export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET} -isystem=${target_includedir}"