From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id CAAFF385350B for ; Wed, 25 Oct 2023 11:06:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAAFF385350B 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 CAAFF385350B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12f 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-x12f.google.com with SMTP id 2adb3069b0e04-507c78d258fso8011983e87.2 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=DNQjupTR9pm21/esXHpHnqCqVrdg8IeMTMAMhyEKSuT1kuOF33eOoDX/+YseX3s/rZ FeTW+W9oHerWUWHBcQs0/i3q0og+nr3BdW5Wac56CLXAKsybSAtExJw/k4970fqn5oHj xjB+I49jlmDJohIYL0epwhjfkGOiTjaBe95ChJiWghGr7FcnSHBWk8LMmD12nKUn/xky brY1IxgqvZAt3oraYpJ5kJ2VelSdpgOFNlLAcTpDHN806v7nb3M78iFXAMZVGZ850W/M 15Z3TW7IBOofV0ovPQW6TWBWJ07c96sPEcNCduWW8rOPUP+k4tCILD7YW/QCw9R1eeBi HTMw== X-Gm-Message-State: AOJu0YwhtmlkeC4mEkRDahbrND7pWhxXDCYzlXJcT+9REHsFRFVjQ5PE UF7LYX/G0/dSPCSGYwSZux5L 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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 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" -- 2.42.0