From patchwork Wed Aug 24 11:59:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: herron.philip@googlemail.com X-Patchwork-Id: 724 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp1391018wro; Wed, 24 Aug 2022 05:20:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Y7d1RK9EWvx2djgEG4qQZj13n4nS5JMT0XqMVoq7WFwWvbYLd64BY2uHXq0PimeI5YEcE X-Received: by 2002:a17:907:1691:b0:738:3754:f0a1 with SMTP id hc17-20020a170907169100b007383754f0a1mr2777562ejc.117.1661343611723; Wed, 24 Aug 2022 05:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661343611; cv=none; d=google.com; s=arc-20160816; b=TyJ5Q2cFT7wVmcnL+hj1x6mI7/9ewUmZkqS2nipDxcfTcpwBkZpuNm8R8WKZlUa9oP EmYB2NsYHGyRFKGAa8uYf55Wql3wE3VLWPGYlA4aqMDzblTxHyxh3G0hGTxhdw1XoDZE 5InBLjgcmxXqdeP6Ew8XCPfzxI2gcmWtXYvSilKjU7akzrqg4Rozh3+PB3MTX2WNU+J8 xIN3ov/qJxSUhUy2ew9BLq1SqnFJoIVPbDJI6LVVy2maUEZGIadT+nd9DiNXJ9zIBN7W R20IS/vXgdNthkxYd1nHp19/7qXdb6VOFQWW2z5FaCFyIW4WYCMzStvcWVsUmWkQsAbo iIyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-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:to:from:dkim-signature:dmarc-filter :delivered-to; bh=QKeiBINY1vFvxx75xu0Zr9m91z9d0MWOyZj/8MtaNps=; b=zzKqbiNS2970WcchPwNqJbvrsVCmnU6wYRqn1XxUyOyYrQifd+v+wS/RYHQap+bCWX zuriVwGcvFr2kGXGoCq33EtDLdFvYQdiEj+TejXAp97bMkaHmSneS1aWvZHHAfCHT3wP hTGcSJOzMZQizL0eOkiOyzsoea5GTKDQUIqT9gwbdnDTDXLDNTGFybvOewkAU13V5bdg 3T+PGm0MxlQNXQ7honW3mEivJbvRmuCrSQ02HXe5D2jzLjUKtyXN1YSgppS3vcYlzRen XIBU0a88554z5iStiCFK+IKn/KuSg/RIkasVfSNl5ZTUmwPsCG+rgn1fj9oXwV0fbGQJ 8x3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=YN5sPf90; 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"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y2-20020a056402358200b004460976236bsi4460952edc.144.2022.08.24.05.20.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:20:11 -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=@googlemail.com header.s=20210112 header.b=YN5sPf90; 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"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DCC13382A7B8 for ; Wed, 24 Aug 2022 12:07:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id CDF41385116E; Wed, 24 Aug 2022 12:01:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CDF41385116E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=googlemail.com Received: by mail-wm1-x330.google.com with SMTP id c187-20020a1c35c4000000b003a30d88fe8eso789509wma.2; Wed, 24 Aug 2022 05:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc; bh=QKeiBINY1vFvxx75xu0Zr9m91z9d0MWOyZj/8MtaNps=; b=YN5sPf90AqoKwXHk89c7AHSNL9p33LNejAUmiX4u2SmTlQh83jdEpgW5t1eOG/rffI JUhDWvOpgcLgcgsthkCn/WOnbySoTWQ6nbtyp7mm+Jpob/il7dYpVSaqag/9c8D04lRy uJUUE2tuVpzGy0SxnKVOQwhXc8p6Ib2vFf1Q9otB3bS+xZU6Gud1adGnCKgkhPBqmo0a ldDjYU6CnGPP1YP+vVAgoMSbWCx57VL0b5zVK10916cadySTMY+ruFgH0SI8UYK1opDQ qcE2tFjbjScZlkNSiSaaTWp7KhFK0eCIEOHmEkyCHlQfEvS8gNb9OOlcLBsBlcYYqAf8 VfDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=QKeiBINY1vFvxx75xu0Zr9m91z9d0MWOyZj/8MtaNps=; b=Dgfxwrzn2eHwbNkzLfC7ysFqHrlk6Cir35P5OcPe4INk+N0VtCR2VaxfWDU2me0K/m iJSdVCtrG1yfHSx/BMnXct/6D0vekdlBzEs3lLN8w9pAwZeGvadE+R/OZ2jbDa5ybYb/ 6JSyAnjnSKnkZcbH9HKI3zXHe+LN7/1Y0S9zQbrLO3ZKJ9FE+8JQnfHvUu/rDXxWizzw 4OJTLgtaiEIhKJ3ZLMZaTpqrrxOHlCvPkKexlr4U3AFEFMSe6EKPre8GKXR7KaWSWfel RARqbmHL3nBD+FUj1p74D/VbXYVbqZsFaKliuGOtJ4Mp2WBrUxkyGRhZ+P6eP89g92gA rdZg== X-Gm-Message-State: ACgBeo1Oc7x+zXLoqJLT8SCN8RDuJW06cIihtWnAhbtPzYmGU9lEPZxj sUsQwMCXQSQ3Xb4wenaK7UCwgscE0F8= X-Received: by 2002:a05:600c:2059:b0:3a5:92cc:19c5 with SMTP id p25-20020a05600c205900b003a592cc19c5mr4793186wmg.101.1661342478479; Wed, 24 Aug 2022 05:01:18 -0700 (PDT) Received: from localhost.localdomain ([86.14.124.218]) by smtp.gmail.com with ESMTPSA id cc19-20020a5d5c13000000b0022571d43d32sm1697676wrb.21.2022.08.24.05.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:01:17 -0700 (PDT) From: herron.philip@googlemail.com X-Google-Original-From: philip.herron@embecosm.com To: gcc-patches@gcc.gnu.org Subject: [PATCH Rust front-end v2 32/37] gccrs: Add config-lang.in Date: Wed, 24 Aug 2022 12:59:51 +0100 Message-Id: <20220824115956.737931-33-philip.herron@embecosm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220824115956.737931-1-philip.herron@embecosm.com> References: <20220824115956.737931-1-philip.herron@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: philip.herron@embecosm.com Cc: gcc-rust@gcc.gnu.org, Philip Herron Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1742045039151588655?= X-GMAIL-MSGID: =?utf-8?q?1742045039151588655?= From: Philip Herron This was a copy paste from gccgo front-end, we do not use any of the target_libs yet but we will need these when we support the libpanic crate. --- gcc/rust/config-lang.in | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 gcc/rust/config-lang.in diff --git a/gcc/rust/config-lang.in b/gcc/rust/config-lang.in new file mode 100644 index 00000000000..d2ff376032a --- /dev/null +++ b/gcc/rust/config-lang.in @@ -0,0 +1,34 @@ +# config-lang.in -- Top level configure fragment for gcc Rust frontend. + +# Copyright (C) 2009-2022 Free Software Foundation, Inc. + +# This file is part of GCC. + +# GCC is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. + +# GCC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# Configure looks for the existence of this file to auto-config each language. +# We define several parameters used by configure: +# +# language - name of language as it would appear in $(LANGUAGES) +# compilers - value to add to $(COMPILERS) + +language="rust" +compilers="rust1\$(exeext)" + +build_by_default="no" + +target_libs="target-libffi target-libbacktrace" + +gtfiles="\$(srcdir)/rust/rust-lang.cc"