From patchwork Wed Sep 20 11:59:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 142376 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4082260vqi; Wed, 20 Sep 2023 05:04:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUFrmXEqpW1/9X8GkN9pyp2D1yQ++4arXLPy7XcxNy/MesJpXebg1c2nS+jRlwyjddSL78 X-Received: by 2002:a17:906:314b:b0:994:555a:e49f with SMTP id e11-20020a170906314b00b00994555ae49fmr2214019eje.31.1695211452033; Wed, 20 Sep 2023 05:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695211452; cv=none; d=google.com; s=arc-20160816; b=KgAXmGiqRfVx7SVTpts8myCSs2QIh+h0AzSpqox8IhPw2PRUXYTDf8217LQx8Vj2X8 elYtmq6RT1dtQRrOol+Guoltnr2pdeVQqIIHxozx+Jv88jtAkxQIecPt0Sbdg93jFUos zKnuhbZo3ejdcR74PrMQiFgctRXhc4OPUhFKVI2GL0JABBDYx/j5kinfRo8icDpMNDCW CI/c6swIzpeQ66w6FBoBFYPGsfqwfGPTqobzXrAtS0pUeqUyQkj9pnHMqsmvUkHvXEGK 85D5E5UAztPsdR+JDKmtsKZRqfH4rIq7wc2KLPbfPjyXa/O9ww8lUngjYKXTlasYoxom U/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=eP5PyHzsyHSKt1v9BCO2buhNn/+ksBjKp6ZZ3PKBdhE=; fh=s1GzlUPo1djGkCl3rkRJI30hDOSCVwGp0RAbVwQ8dxQ=; b=K+I4Xi82LZEEhibXuRT8QMl4J0P7PzuoXaafn/R4NlcqQd8OBM7LpGnQNQhUMKiF22 9uSnpYhfivEiDQgv8RB1yL7bWToJaQ+VCaXWg2yoohMEOxPHr3BgLAIF26mq34ycbjtl cExG1eTp3WcOEhcn0NmtPZIqpOb+zdQ5ku0s+/CUk3sz73IMC+u0Z9D4USKGqIwduwAK x2nwrTRaJDHo03Mu46MeVIM5q999qHbW8tvSG6ZRemTrasPFt+E09p9O3Fhu/aJWBDS7 1vc0zlYrepQinj4CcSN+lRVTUqZTTXEdbCpYYfPsn+zrAbkxCLjScHHSVgVj0agPdEAQ Nsrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Ro3f8DVh; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id dk24-20020a170906f0d800b009930f844671si11801748ejb.963.2023.09.20.05.04.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Ro3f8DVh; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EC3D3386183C for ; Wed, 20 Sep 2023 12:03:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id B38DF3858410 for ; Wed, 20 Sep 2023 12:03:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B38DF3858410 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-401b393ddd2so75314635e9.0 for ; Wed, 20 Sep 2023 05:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1695211387; x=1695816187; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eP5PyHzsyHSKt1v9BCO2buhNn/+ksBjKp6ZZ3PKBdhE=; b=Ro3f8DVhgRhPA5zMN5AmQ9u1M+4DV9TgmuPyTwv6cAATz76lpD38oepjF2Tdt8UbBP ApJr2KhiRpGbZ9s66Gk4drEx5UNioipp0BbY23/r9Pof5J+/u9wV9Cxj41W7HuqeVHRJ 9uMXD9Lxlo2KJzQ02PB+CEsSCKMA5agB5NG7H1XXkus6yxuZRqm+kYUJyu4I0ULeo0a6 kN74SjIfKCPCjej+c0wpEOuucTghsLTQVpNDU1/8s2oZzY71eSPR55rMj4Wp11e2JCsT xMLJohAEyr+0kS4+Hh/PbPqUvOjvut1OHETAmkIphtXelAg2aemqJamFI4k8nxEb8LKu vjsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695211387; x=1695816187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eP5PyHzsyHSKt1v9BCO2buhNn/+ksBjKp6ZZ3PKBdhE=; b=gFWYHBClCK9AqL8dm7Jf5ppR0idj9UCRwu4DWBIhD6wJScElW/3FqlS0OjuU/bZ0fA D/vaohcVth7LoF3k8IWPgzA9JquuVKv7VAebqtQQKZ1ZxXrOJ9SgjnoiUQj4HnuPLYkW 5nj2/czFVV0W7iesSqXiXiTcX/vyZaunfKFafg4NYGA1J7BTgXkUZdhv6V91R3N3RQpB tcVMZtzcc+VW8U9L+tAgUAoASgvcsHi0yNItUBdzkzD3m7opNGVl1akZdd0opAHFYtAS Rk0391Jgqm5kB+HCpPDclo9gUABZNW5uzsjl3ydU0bSPyETnCd4OXe0HC4FDmKh8VKIp EF5g== X-Gm-Message-State: AOJu0Yw6lqlRHLsQ2M80Gt9WN7im2OMShIpQz5HruudcnMwbf06OEmWS xwz4HUXmv+ZutxMq+pOVtFdk7GZ5IIhaY9nG+2iz X-Received: by 2002:a05:600c:241:b0:401:c52c:5ed9 with SMTP id 1-20020a05600c024100b00401c52c5ed9mr2139820wmj.32.1695211386126; Wed, 20 Sep 2023 05:03:06 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c6-20020a7bc846000000b003fe29dc0ff2sm1782020wml.21.2023.09.20.05.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 05:03:05 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [PATCH 2/3] build: Add libgrust as compilation modules Date: Wed, 20 Sep 2023 13:59:53 +0200 Message-ID: <20230920120311.14892-3-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230920120311.14892-1-arthur.cohen@embecosm.com> References: <20230920120311.14892-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777558043585707003 X-GMAIL-MSGID: 1777558043585707003 From: Pierre-Emmanuel Patry 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 --- Makefile.def | 2 ++ configure.ac | 3 ++- gcc/rust/config-lang.in | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.def b/Makefile.def index 870150183b9..3df3fc18d14 100644 --- a/Makefile.def +++ b/Makefile.def @@ -149,6 +149,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; @@ -192,6 +193,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 1d16530140a..036e5945905 100644 --- a/configure.ac +++ b/configure.ac @@ -133,7 +133,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 @@ -164,6 +164,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 aac66c9b962..8f071dcb0bf 100644 --- a/gcc/rust/config-lang.in +++ b/gcc/rust/config-lang.in @@ -29,4 +29,6 @@ compilers="rust1\$(exeext)" build_by_default="no" +target_libs="target-libffi target-libbacktrace target-libgrust" + gtfiles="\$(srcdir)/rust/rust-lang.cc"