aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-13 17:45:36 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-06-14 11:09:46 +0000
commit706341acbd5ae8c2651cc16cd7c8eb34eec7c9a3 (patch)
tree498100753540105417c7d072c838941ebd2833ff
parent61cbe201029658c32e5c360823b9a1a17d21b03c (diff)
downloadgcc-706341acbd5ae8c2651cc16cd7c8eb34eec7c9a3.zip
gcc-706341acbd5ae8c2651cc16cd7c8eb34eec7c9a3.tar.gz
gcc-706341acbd5ae8c2651cc16cd7c8eb34eec7c9a3.tar.bz2
build: Do not build libgrust when rust is disabled
Previously we were building libgrust even when not building the rust compiler. Since libgrust is useless for any other frontend this commit prevent it's build when it is not required. ChangeLog: * configure: Regenerate. * configure.ac: Add condition to configure and build libgrust. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rwxr-xr-xconfigure11
-rw-r--r--configure.ac11
2 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 0c06768..b176d49 100755
--- a/configure
+++ b/configure
@@ -3439,6 +3439,17 @@ $as_echo "yes" >&6; }
fi
fi
+# Disable libgrust when not using the rust language
+if test -d ${srcdir}/libgrust; then
+ case ,${enable_languages}, in
+ *,rust,*)
+ ;;
+ *)
+ noconfigdirs="$noconfigdirs libgrust"
+ ;;
+ esac
+fi
+
# Disable Fortran for some systems.
case "${target}" in
mmix-*-*)
diff --git a/configure.ac b/configure.ac
index 535236c..08bbbd3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -698,6 +698,17 @@ if test -d ${srcdir}/libphobos; then
fi
fi
+# Disable libgrust when not using the rust language
+if test -d ${srcdir}/libgrust; then
+ case ,${enable_languages}, in
+ *,rust,*)
+ ;;
+ *)
+ noconfigdirs="$noconfigdirs libgrust"
+ ;;
+ esac
+fi
+
# Disable Fortran for some systems.
case "${target}" in
mmix-*-*)