From patchwork Tue Dec 6 10:14:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 61531 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B286438ADBFB for ; Tue, 6 Dec 2022 10:24:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id DAC80395C017 for ; Tue, 6 Dec 2022 10:14:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DAC80395C017 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-wr1-x42c.google.com with SMTP id f18so22742793wrj.5 for ; Tue, 06 Dec 2022 02:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=6SVAg3pZNsF3LHy8RL2JibsFPMfFH4hBQuWOTKQi/Qg=; b=KiUe0DKdEbzjEK22cX5+gwrx0UD8DjstD4FsR3psJ9c4yp1wEYRpOiCvL33fSM0N1p yQarHnyziXtSrxgavQkWPCQ4PjI4OnatiREdtvpyTG0empj1G4zGVM0i/wlRgMNTB9x0 amrjPswTTeQ5jOaUzd//+wrKPo9EHjY9sm9Pi7WS1Z8GClmBz90X+yfLIZfIW3gyHOF8 scLSoTDhlxL2j+aJlZRbbyeDAEjt7a0FHtpGAgtMWmIci8+IbpeFiZuIrMFfh/Io+ayS wLa3dPxoQXm+S4VOKPWG7SwujfH+ehFnRQx2q+qSVxMXoMMWkKoeN3lUXBKBYtmZv0JH rYnA== 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:subject:date:message-id:reply-to; bh=6SVAg3pZNsF3LHy8RL2JibsFPMfFH4hBQuWOTKQi/Qg=; b=Jd6GP5j2uASvJ9K6eWyAXxAqbJx4wlbKgzVsTvv812SL3aiSSOY82HOOOypQCJAilB j0isPxJeMcxYKDBQJReETrB6Nvvk7WCpx4iULzoVUOqex44Tgvqx2SWnPKodBTA8CHtC P805fTRUTpcRheHDhVO9ePAaoNcqoAXn2FSzF6Lttwvc1lGBng6BoB0jol9n5SyJ5D/M RHsD8WhwqgNjthsDW1E0eit35g0U0YrIfGDWz93RJbkg5rR2Gx/AuLVt+WzhQ8yBsqep ewJTmAffCDs1yX1P4fKmEx1SK+AHvFym1Y4g5TgyFefAJJwvpDqwQ5kTjsOdi06obtuE 23cQ== X-Gm-Message-State: ANoB5pnyxr/vWM5KrA0yDNkOtkdaeBftQ/h0CrHWlUDxZ00eeFqd+OAD /sgdppnUEKQvFSTYkgqCP269F7OR1YQ+hSbtwQ== X-Google-Smtp-Source: AA0mqf5XMwGbwuoEGORAUCy517b2oHCHkZYr8eGB9Z4gJZB7WcYuk99YDOTZP6J/2QfApUG261vOQA== X-Received: by 2002:a05:6000:60c:b0:242:10ac:6ab2 with SMTP id bn12-20020a056000060c00b0024210ac6ab2mr26152880wrb.552.1670321648423; Tue, 06 Dec 2022 02:14:08 -0800 (PST) Received: from platypus.lan ([2001:861:5e4c:3bb0:6424:328a:1734:3249]) by smtp.googlemail.com with ESMTPSA id r10-20020a05600c458a00b003cfd4a50d5asm27052699wmo.34.2022.12.06.02.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 02:14:08 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Philip Herron Subject: [PATCH Rust front-end v4 41/46] gccrs: Add config-lang.in Date: Tue, 6 Dec 2022 11:14:19 +0100 Message-Id: <20221206101417.778807-42-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221206101417.778807-1-arthur.cohen@embecosm.com> References: <20221206101417.778807-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-17.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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"