From patchwork Wed Oct 25 11:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 1855006 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.a=rsa-sha256 header.s=google header.b=O0lxi3NV; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SFmND30qXz23jV for ; Wed, 25 Oct 2023 22:07:08 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0214B3853531 for ; Wed, 25 Oct 2023 11:07:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 01DA6385DC14 for ; Wed, 25 Oct 2023 11:06:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01DA6385DC14 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 01DA6385DC14 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698232011; cv=none; b=flbLoF/i5Wb8m98FZm/A7AZLvoU3PKnYRORO/Z3FZc/ejkYgvW+2Xhhfdn7Kerrvf3eGjAIFHlvOtZ+dfLnBVkC6nBWpPCiFO05Z8YQLExhye4tviQfrEhvswG7qoZQk3ueMCewbTgV9nf9j37RegZ6OAenJxqrXQJp+Fp/DGT8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698232011; c=relaxed/simple; bh=fb9HJlmCFF3hRtiRRBL8AhosoDKzxivbHv00LJaa8ag=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RCgQfTUFBrxsJ/yPnNFu/UXcibr2d3cT0zkOhiSmkFcI8vHACySbGBilmvCXX6vGMBfcugq0yNxsrh4HohaZRU3jLWa5TfA+yiGnCsWK71U3tqEmgxwh2zBFizS4I81MJ0ni2ClAGYHqZdC67QRSGR0I5M2HDhmaKh1loPcF78E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-508126afc88so1592260e87.1 for ; Wed, 25 Oct 2023 04:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1698232008; x=1698836808; 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=4ICg4GLyKpf1C86CGQFuYeq/Nx18X/8YI6tog+9D9S4=; b=O0lxi3NVitTu0R5KIxRWAzVLE8Zo9DO5kQ9Qfi+h27UubhAkP93kXbDJ43V1q8sIwQ TKeiwx3MlVCgU4WtnmchQva8Y/8qsAQDFX/KoM33yAq8xNzqQnTQgYI+KWNPCZLoyi0J i9xrSB0rsjYjWWBHr0k3c09l/QKnPO+b4SGy5aApsOEleVS+7JFKqMPbp7S39Hjz63+E 4Gkem3/08jDEDv6QLqstXdrOoa+bUU67ZABQNq5v8o/go5HZDH0tNkt1jwv6yFBrVKNu 3gZ3O/0ZS6Z+lnGRLt6rvlX+LhdGBeZcmTG5L6eCuP/Js1v18LOq/wb2ZtGIwZMsbF3J N1hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698232008; x=1698836808; 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=4ICg4GLyKpf1C86CGQFuYeq/Nx18X/8YI6tog+9D9S4=; b=AukesQE3M4v7eX7pKaC9+hpY57zAUZPvQKoPJ4iSDK6qzLicANrApUKKpFpcIfnpAh dJUJ8ue6GHbTZXb6PcknK8lD0ncc7oKu/sTJv3V9y2qRjdaVxFwAO7GkfA5jkoqaFM/6 osDPpJJs9lz9GWzzSacvFgLr8zp3EffjQ/rXBV49rTD9Iy0fG/+Y9OPPdCPluj8A3rXh /lSDNVATv1QIekWXpZOCKuAmIFFoQEogDEWR0tEahOvFK1rhW+Df2FbN7z2EjRMJc0Qo Xe8OEnKoVyaKCshTy3/4gGeFmqyRU5PWTpHMKIucbUsacuydWL6R/hdjaZqgdkOPWvwz VRPg== X-Gm-Message-State: AOJu0Yx+yJUAWR4TswjL486zdwcnDmC+YZMFIqCBVA/UAlWSPpPeYKM1 8ymeu6NYXjx6toP/QRYpXPokqpB6PmTWPTJqqxbN X-Google-Smtp-Source: AGHT+IGzfc7ErG7KTg3d2IGhrhvVWLP0MlsOIE6Oy14WnMwZqWqUnp13Gj+WouPOD5pGK0swAaWCkQ== X-Received: by 2002:a19:7516:0:b0:4ff:7004:545e with SMTP id y22-20020a197516000000b004ff7004545emr10342847lfe.4.1698232007830; Wed, 25 Oct 2023 04:06:47 -0700 (PDT) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id bi9-20020a05600c3d8900b003fc16ee2864sm14263608wmb.48.2023.10.25.04.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 04:06:47 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [PATCH v2 3/4] build: Add libgrust as compilation modules Date: Wed, 25 Oct 2023 13:06:48 +0200 Message-ID: <20231025110658.1232737-5-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231025110658.1232737-1-arthur.cohen@embecosm.com> References: <20231025110658.1232737-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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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 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 15c068e4ac4..929a6f0a08e 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 692dc716343..b2a5511bab1 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"