aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-25 13:06:48 +0200
committerMarc Poulhiès <dkm@kataplop.net>2023-12-14 13:58:57 +0100
commit725fb3595622a4ad8cd078a42fab1c395cbf90cb (patch)
treee39d82737ac19e2638805a470085d55ca15c4b20 /configure
parentf37c55c14bc1176ef9a15fe584fb6d1bf2e6162f (diff)
downloadgcc-725fb3595622a4ad8cd078a42fab1c395cbf90cb.zip
gcc-725fb3595622a4ad8cd078a42fab1c395cbf90cb.tar.gz
gcc-725fb3595622a4ad8cd078a42fab1c395cbf90cb.tar.bz2
build: Add libgrust as compilation modules
Define the libgrust directory as a host compilation module as well as for targets. Disable target libgrust if we're not building target libstdc++. ChangeLog: * Makefile.def: Add libgrust as host & target module. * configure.ac: Add libgrust to host tools list. Add libgrust to noconfigdirs if we're not building target libstdc++. * Makefile.in: Regenerate. * configure: Regenerate. gcc/rust/ChangeLog: * config-lang.in: Add libgrust as a target module for the rust language. Co-authored-by: Thomas Schwinge <thomas@codesourcery.com> Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index f8abb26..874966f 100755
--- a/configure
+++ b/configure
@@ -2829,7 +2829,7 @@ build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
# these libraries are used by various programs built for the host environment
#f
-host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
+host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
# these tools are built for the host environment
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
@@ -2860,6 +2860,7 @@ target_libraries="target-libgcc \
target-libada \
target-libgm2 \
target-libgo \
+ target-libgrust \
target-libphobos \
target-zlib"
@@ -9275,6 +9276,17 @@ case ,${enable_languages}, in
;;
esac
+case ,${enable_languages}, in
+ *,rust,*)
+ case " ${noconfigdirs} " in
+ *\ target-libstdc++-v3\ *)
+ # Disable target libgrust if we're not building target libstdc++.
+ noconfigdirs="$noconfigdirs target-libgrust"
+ ;;
+ esac
+ ;;
+esac
+
# If gcc/ is not in the source tree then we'll not be building a
# target compiler, assume in that case we don't want to build any
# target libraries or tools.