aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-27 17:10:38 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-03-15 16:27:27 +0000
commit92d2d5a6087a10ebad2242004b1e644677d77e5c (patch)
tree7b54dbe5e0d30746e7551b28b6fc07d6907e50b6
parentcc10d5ed59d79c5a163b3bad715180249862ba09 (diff)
downloadgcc-92d2d5a6087a10ebad2242004b1e644677d77e5c.zip
gcc-92d2d5a6087a10ebad2242004b1e644677d77e5c.tar.gz
gcc-92d2d5a6087a10ebad2242004b1e644677d77e5c.tar.bz2
build: Add libgrust as compilation modules
Define the libgrust directory as a host compilation module as well as for targets. ChangeLog: * Makefile.def: Add libgrust as host & target module. * configure.ac: Add libgrust to host tools list. gcc/rust/ChangeLog: * config-lang.in: Add libgrust as a target module for the rust language. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r--Makefile.def2
-rw-r--r--configure.ac3
-rw-r--r--gcc/rust/config-lang.in2
3 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.def b/Makefile.def
index 35e994e..0ba96a7 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -147,6 +147,7 @@ host_modules= { module= libcc1; extra_configure_flags=--enable-shared; };
host_modules= { module= gotools; };
host_modules= { module= libctf; bootstrap=true; };
host_modules= { module= libsframe; bootstrap=true; };
+host_modules= { module= libgrust; };
target_modules = { module= libstdc++-v3;
bootstrap=true;
@@ -190,6 +191,7 @@ target_modules = { module= libgm2; lib_path=.libs; };
target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };
target_modules = { module= libitm; lib_path=.libs; };
target_modules = { module= libatomic; bootstrap=true; lib_path=.libs; };
+target_modules = { module= libgrust; };
// These are (some of) the make targets to be done in each subdirectory.
// Not all; these are the ones which don't have special options.
diff --git a/configure.ac b/configure.ac
index 2b612dc..535236c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,7 +132,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="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
+host_libs="intl 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
@@ -163,6 +163,7 @@ target_libraries="target-libgcc \
target-libada \
target-libgm2 \
target-libgo \
+ target-libgrust \
target-libphobos \
target-zlib"
diff --git a/gcc/rust/config-lang.in b/gcc/rust/config-lang.in
index b1e3a9d..88ddaa9 100644
--- a/gcc/rust/config-lang.in
+++ b/gcc/rust/config-lang.in
@@ -29,6 +29,6 @@ compilers="crab1\$(exeext)"
build_by_default="no"
-target_libs="target-libffi target-libbacktrace"
+target_libs="target-libffi target-libbacktrace target-libgrust"
gtfiles="\$(srcdir)/rust/rust-lang.cc"