diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-22 19:36:38 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-29 17:36:58 -0800 |
commit | 8b40ab0d6eb2b0bd4e9c0f168e77b555caa78703 (patch) | |
tree | ea751097394898c1d14a8be849e5d056862e9dd6 /scripts/build/cc | |
parent | 0e0ecc8bcf27d34c6564dcf990e1c7ef8c5acb4c (diff) | |
download | crosstool-ng-8b40ab0d6eb2b0bd4e9c0f168e77b555caa78703.tar.gz crosstool-ng-8b40ab0d6eb2b0bd4e9c0f168e77b555caa78703.tar.bz2 crosstool-ng-8b40ab0d6eb2b0bd4e9c0f168e77b555caa78703.zip |
gcc: CLooG should be optional for configure
Because >= gcc-5.x does not require cloog, it should not be forced on
the command line arguments for configure if graphite is enabled.
Make CLooG optionally added, if it is needed (aka: <= gcc-4.9).
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/100-gcc.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index fb1ce18a..d943ebc2 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -318,7 +318,9 @@ do_gcc_core_backend() { if [ "${CT_ISL}" = "y" ]; then extra_config+=("--with-isl=${complibs}") fi - extra_config+=("--with-cloog=${complibs}") + if [ "${CT_CLOOG}" = "y" ]; then + extra_config+=("--with-cloog=${complibs}") + fi elif [ "${CT_CC_GCC_HAS_GRAPHITE}" = "y" ]; then extra_config+=("--with-isl=no") extra_config+=("--with-cloog=no") @@ -793,7 +795,9 @@ do_gcc_backend() { if [ "${CT_ISL}" = "y" ]; then extra_config+=("--with-isl=${complibs}") fi - extra_config+=("--with-cloog=${complibs}") + if [ "${CT_CLOOG}" = "y" ]; then + extra_config+=("--with-cloog=${complibs}") + fi elif [ "${CT_CC_GCC_HAS_GRAPHITE}" = "y" ]; then extra_config+=("--with-isl=no") extra_config+=("--with-cloog=no") |