From patchwork Wed Aug 24 11:59:26 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: 707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:ecc5:0:0:0:0:0 with SMTP id s5csp1385448wro; Wed, 24 Aug 2022 05:08:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Qzh4phCPZ1AG6YZS7JMgoujUfG2LxJXNcKz3ArZuWB2YlBhzWOAFwArvZYX7JymWku2m1 X-Received: by 2002:a17:907:c15:b0:73d:8337:3aa8 with SMTP id ga21-20020a1709070c1500b0073d83373aa8mr2666027ejc.254.1661342890875; Wed, 24 Aug 2022 05:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661342890; cv=none; d=google.com; s=arc-20160816; b=J+Gry02ZJOtBM9dPoHq9Opr9vPuZqQy8BbXUASi1W2urLo59StdiIap2hxIU1qXdDA z2EDM/ldjvNqYAfjxFF6SGssBaT4+vvLG1bkVj3xalcjtMVhysSxBdq4YRnGCxgSXAy2 qUIGEfkzzbWgoBDeZ/qou4sG+MVQnsvIc2Csluh9YsJ2NT3thb3TaPzfMoCOs8sQJngG 1UtVS5Z4RCXf4moeBk6JU3cpemgEGhIxXJD5y/qOx8nNz3wMZaIgEbVkxe10vfNaq+Wg ksBZKSyd1Q5FMafJ+nrZzKgSPmpBQbeoZMkYrVV6vJW6yfAftj7KxPA0M2xWa5R0q3u4 zB1Q== 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=8T8GbiKhgPYZRZV5H23CKHO8b5/0wiJQ2GCgfG67Ky8=; b=Zn06axXuKo8m/WWPMFvm+0OXqHKPlTcV9LXK4C/owiBisYEYxIXpe5BE1I1FY9SMs4 CSJPLs2e7mV6VN6A2mkrlZf/68qG+Bv4ipSLqAEcPSb4YWuHhsHrb3PAj2YIAdp6nvKu JmvxN0KlDt1X2/Z4vWZ6wYCVShqncG/qNNlnbBL4r/DpapyJvxj4f51XP8reFrPU9bqJ riuFWmLDLuCfGvzdPFTv+5//zYUI0vvKvfi4Ay3kS/vOm2p7BG6jS0Qu8mo8KPhoMU4T 2h4AE9bWhfgnCGgTiiatU2ZWJlMolGxtiDD1ms4HgqqVgfYymoktb90BK+HOOx883v3y iJ1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=QLC2UNlz; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id aj16-20020a1709069a5000b0073d669652a8si1523872ejc.713.2022.08.24.05.08.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:08:10 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=QLC2UNlz; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 84255388B6A8 for ; Wed, 24 Aug 2022 12:03:04 +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 4552E384D15A; Wed, 24 Aug 2022 12:00:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4552E384D15A 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-x332.google.com with SMTP id m17-20020a7bce11000000b003a5bedec07bso801497wmc.0; Wed, 24 Aug 2022 05:00:36 -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=8T8GbiKhgPYZRZV5H23CKHO8b5/0wiJQ2GCgfG67Ky8=; b=QLC2UNlzph6Km+OgDBuwIq2ecgQeX8Ybc7pPwDUorIkhTMSKqH7g2mnZXpKPoxlIYb XmLObD0984ywRfRUqN2CrJYzdP4r0datzSejob+m+/gOgqecdTRtZaMfsZ4Xde26VKX6 6MY3Qe1zHyBBX53CCrmthv9AU9LxD21ctpgVOb3X5muH08SkLbZcY4d1MQKjjk77CaaV 4RZb7Wp8u9nmdvZkRMR287Ms4jZTI5eJ6NCNNEbKG9/4/L1DrjXn9QwZd7wonnFUCtGa DfQVLmI1aI2IGV8fCH3X6Q5nbqdS4JVItQXaajrFMva8vwvfGGzRAaEWs55xmaMy+9cg M8ig== 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=8T8GbiKhgPYZRZV5H23CKHO8b5/0wiJQ2GCgfG67Ky8=; b=kLK6wgs+V/U2NE8E/955sKxnUaiDYf+C2rV7zmmw9KNuGB9eEfNO4vCtsFqlN1pwY+ S6yZa+mjT/4QnXENnL233ajGPWxvl652YAMPt7GW8RhQGzMVeSHbYoIrjAi8Fs1Myb8h HpvxomCFXw6FaRKkrAhmh1NjG5iZjK26mbwiyVuhxu49DP8xnAkFLoNl2W5coZ2rSxg3 Lx0e0hAwIPcbBj3A/9uTSZY7Rle6Bxkj7N0TEWmpxDVeZFTyESe95si9uxVeZPdsx8pu X2VOvw7FdZ0LnoGavT5ptugqjwFdFJazkswxQDKZY72WZUHp5GPnk5Abka23rN7MjwDd ZEqA== X-Gm-Message-State: ACgBeo1X8aY9ykKMLoCUAcBoy+f7oVTU31Dhd14zol9DKhtG8rm+c+PT a6jL919TvM5L3LTNljjXfWSVGrp0toY= X-Received: by 2002:a05:600c:501f:b0:3a5:54ff:625f with SMTP id n31-20020a05600c501f00b003a554ff625fmr5191967wmr.5.1661342434830; Wed, 24 Aug 2022 05:00:34 -0700 (PDT) Received: from localhost.localdomain ([86.14.124.218]) by smtp.gmail.com with ESMTPSA id cc19-20020a5d5c13000000b0022571d43d32sm1697676wrb.21.2022.08.24.05.00.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Aug 2022 05:00:34 -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 07/37] gccrs: Add gcc-check-target check-rust Date: Wed, 24 Aug 2022 12:59:26 +0100 Message-Id: <20220824115956.737931-8-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.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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?1742044283255478215?= X-GMAIL-MSGID: =?utf-8?q?1742044283255478215?= From: Philip Herron This allows us to invoke the rust testsuite. ChangeLog: * Makefile.def: Add autogen target * Makefile.in: regenerate via autogen --- Makefile.def | 1 + Makefile.in | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Makefile.def b/Makefile.def index 3291b126b26..821016af3a2 100644 --- a/Makefile.def +++ b/Makefile.def @@ -681,6 +681,7 @@ languages = { language=go; gcc-check-target=check-go; languages = { language=d; gcc-check-target=check-d; lib-check-target=check-target-libphobos; }; languages = { language=jit; gcc-check-target=check-jit; }; +languages = { language=rust; gcc-check-target=check-rust; }; // Toplevel bootstrap bootstrap_stage = { id=1 ; }; diff --git a/Makefile.in b/Makefile.in index 1919dfee829..9ed2c0dec52 100644 --- a/Makefile.in +++ b/Makefile.in @@ -60583,6 +60583,14 @@ check-gcc-jit: (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-jit); check-jit: check-gcc-jit +.PHONY: check-gcc-rust check-rust +check-gcc-rust: + r=`${PWD_COMMAND}`; export r; \ + s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ + $(HOST_EXPORTS) \ + (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-rust); +check-rust: check-gcc-rust + # The gcc part of install-no-fixedincludes, which relies on an intimate # knowledge of how a number of gcc internal targets (inter)operate. Delegate.