From patchwork Tue Dec 6 10:13:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 30189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2735499wrr; Tue, 6 Dec 2022 02:15:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iuttGRM18xOqnSP+vDOhDI+y+HYrFwgUMGtFL9F/c+DHJXYh6CfeG61Iep0YpEHDXYBEc X-Received: by 2002:a17:906:a884:b0:7bd:15a6:27e8 with SMTP id ha4-20020a170906a88400b007bd15a627e8mr42165846ejb.78.1670321700213; Tue, 06 Dec 2022 02:15:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670321700; cv=none; d=google.com; s=arc-20160816; b=u8V9iT6487HU3YNU7b5lpzbJe6Q/W0FvMGAHl0aQG4AliA3k6zczvQmasdHVtosUIt TBzAwdmZz7pe/o95BtP9xJmZDbUAnjZjEPe9j9ngTB+gMdC6G/OBRsI9VzmBtLcbX15e iS6djd/7blJeri0ouC8Of/gX2OxKFoS4skX3Xe0keMpU3SyItwhQVu8Fe8L9InCxb2Xn 7n7pD9hYBvbru8rpRDbcD3qm2yRnyxRCnO/BZYJyA2afjvBKWn/uoMNWQbYevkVKJDNz ArVikj+joXeGftctE07TvGHygL33Hi8mbuJSdOwmWIOX7C0qojKGJl/a1KplN5wJgXTg djkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=3zm5KJY035CjcOsQSdplYxuyDzW/EVvguACCjSWfOs0=; b=hpOQ//OF2BUVM7t8PhtVmrdUH61gvqXWDaNIh9zziytiobyKqCWPC9mm6XTvUFegv5 otZHqz9y8NvJsUACamCNaTSdDl9iZZk4jG2cTAiFrXLhjGf4jqC5v61Ro64JTaCVgPQf zSIWjfOorjy9p2xGYc08iu2nr8UehxNyAkFU/J49MlegGiV2N3UM1VNlHsvsE5SGMZ0b N4zKc57swYPkbQxPC+xoxjCEXP++AQv9S+MYj6runjXPRIgv5AVyAXemxsQpj7j+c3nf NBoY5YxEHZhR5Q3MCoLvHVUQX2bEmkASOBOS1KKcE5Ql9OnXJa8g+Zl4bFIj1+hAzhBs IYug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=hvm0ozAY; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hq19-20020a1709073f1300b007c086018a40si13750733ejc.996.2022.12.06.02.15.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 02:15:00 -0800 (PST) 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=@embecosm.com header.s=google header.b=hvm0ozAY; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1998C3AA8436 for ; Tue, 6 Dec 2022 10:12:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id 8DB80395C011 for ; Tue, 6 Dec 2022 10:11:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8DB80395C011 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-x42b.google.com with SMTP id h11so22681196wrw.13 for ; Tue, 06 Dec 2022 02:11:55 -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=3zm5KJY035CjcOsQSdplYxuyDzW/EVvguACCjSWfOs0=; b=hvm0ozAYZ9aE4lgDN/TJdEKYr3HaQpy2O8ePQv+KDZ4sZv6ji3SOOWAHYOm0OqWv5+ YI4CCMmMogRjFfma6miE+V+z/s1GYAOpl23whJKkI3UTWi02oRs8rYEMHXMGX1Xu/wCv UaNPItm0txdoAV8jvN2tHgOK+naXimxq0oZ/q81OIiQBaFgmFRnzFqf45t4NCaxLr5cV /41uA32XanT1khTDt1om5h5VROktlXxbQGtrtaVPWxhf6FEKSXmPsS3CeiED5/rUMcra 29jzlbi3m3DQhTxGWBPaGNF9p1zbczC+qms70g+lRAbUwCYN7ilZgS3YNjt4idQhYtiX v+mw== 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=3zm5KJY035CjcOsQSdplYxuyDzW/EVvguACCjSWfOs0=; b=EYX4kas004KfDaQR2Du0wrDnh5rCEk3qDfTHQfi3EdJsWnb+YooXzFqm7AJ7teI3OQ 3r90a2qbrYMY2YiXn6VySto9QN+GJ/pTdvCHS1uzne5m/YhAP3Z2FofY9R3ECzJPJ7Q8 aDCyQXg9X+IcKbHydewKeMeOQg2h4slQCDWvKQrPOuWJXrFHmMV84QqmgQ+Worhs7nQZ wyFALVh42ntsPSCEyyZbmpcgTTirUdElH/AVxS3jo7Rg7YxYYiMVnw+Z92kNtwg/Yvec xoeSg1HvCDhpLbm9tzg7jBH2W7xi+xdfPNoDYfJgYDe7z7CrlaSoWjK8KYNF73g/lx5+ ZuyA== X-Gm-Message-State: ANoB5pkmVOkfO0FfQb6ZqCyUBfm+RBVWu8ZYv/y91Lp/epfuoNIJUYWC 85ULZOBRFBNUyEslxer/lbQK24KJWhCt1k2/Hw== X-Received: by 2002:a05:6000:149:b0:242:6b35:598e with SMTP id r9-20020a056000014900b002426b35598emr3658936wrx.47.1670321514875; Tue, 06 Dec 2022 02:11:54 -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.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Dec 2022 02:11:54 -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 07/46] gccrs: Add gcc-check-target check-rust Date: Tue, 6 Dec 2022 11:13:39 +0100 Message-Id: <20221206101417.778807-8-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=-35.5 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.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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751459246996105087?= X-GMAIL-MSGID: =?utf-8?q?1751459246996105087?= From: Philip Herron This allows us to invoke the rust testsuite. ChangeLog: * Makefile.def: Add Rust language. * 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.