From patchwork Mon Aug 7 11:07:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Arsen_Arsenovi=C4=87?= X-Patchwork-Id: 131885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1405487vqr; Mon, 7 Aug 2023 05:17:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6PK9sTZzm8xp4YPPkbYYF12vOFIMsfVwRCOzvAeMpjJQMNiGPZ61iiJWYAMCTzIMcJ/il X-Received: by 2002:a2e:8781:0:b0:2b6:ea3b:f082 with SMTP id n1-20020a2e8781000000b002b6ea3bf082mr6250471lji.38.1691410630143; Mon, 07 Aug 2023 05:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691410630; cv=none; d=google.com; s=arc-20160816; b=nsKXfDvzf8Bm+ZoWlHGVzUkzU5Bn8XDUFWUuoTOcyzDakplOcY8tMOOIziGs4LJM7S 2n88lAUvpUjw/45D3TZbK7Q6jae6SFmtuoIlpL0r+SQoXQJYQn1TLiMHM41EE8Ai5q63 ejTZaFkKdHQrjgpnsSmGlHFiLa1dncEsJ+rviLWl3GLtPaNTm95JaBMjcn5lNEHW9jvs aLvKc3Qw+/Jj5Ecp0ZepFLgPwauPlS+5RUQWQpZGadGPg4AJjc2gzldLondoITyzAYgX 4i9F2QTQ6q4t/13bxMmvWJe656n5/PzUZ6Vlg4/hSrEjb+C+rVQpFMzWEp+ZEG7qLUat u6jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from: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:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=Peop8CZ50FQ1Fa2txmNwe5T+39weeanhfVvFaTQbaaI=; fh=788AvZYIOrBqGNnKrNtNopFabHcvEELAsfdVlAjjutY=; b=uvLmZFVjudmSusHjKinjLsTjgxiCdkDD9cuZMdfIbZwwZ/zO3BPrlRSrDj0jdQHHof fyvVItoK3XDeYFSwmBoL0WpkhrZo1hcHj7QvzcEj3MMoUyeoisqqgQRK3OAunJb0uWuN TBMk/8H3j5x3+SqfGWjQTvJBRSNHoSyKArB7FzbTdlwvznai0pFBOKCANiWUCGR1eMK2 i9Zlern7Be91u8b7U+KP+h5dHxIQYOZ+wix+WuttzakqJ9LX8ZdiCBeSh8lpcntvHs24 fB4QvCCP7Uv4Iyk+NOPJyMp3B0UEkB5pt5iCtS9j/vz2P3RPzT+Ln5kMX15xI8C+zrcA VPNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=p4Or1uqI; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f2-20020a17090660c200b0099b59dc6ab8si5409158ejk.108.2023.08.07.05.17.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 05:17:10 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=p4Or1uqI; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECF32395B820 for ; Mon, 7 Aug 2023 11:46:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECF32395B820 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691408788; bh=Peop8CZ50FQ1Fa2txmNwe5T+39weeanhfVvFaTQbaaI=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=p4Or1uqIlfwbVpNA3hANQSX9AT04TVE76q+UR/y++ZlRhsHCv/bsKYqQjz0Mufj6M cpIwic3FQzuU/6lzOzeSAjw8cEMYnSVgBCTRtyb7R1F5EfB8EQbziFYbvdIHcqvjjv BHi6cqrIDGk25Ealc0VSL3CvZmkUHiuw6Ff5X90E= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by sourceware.org (Postfix) with ESMTPS id 1443F3853D2C; Mon, 7 Aug 2023 11:20:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1443F3853D2C Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4RKDPW43ptz9sS4; Mon, 7 Aug 2023 13:19:59 +0200 (CEST) To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Philip Herron Subject: [PATCH 43/45] gccrs: Add gcc-check-target check-rust Date: Mon, 7 Aug 2023 13:07:46 +0200 Message-ID: <20230807111029.2320238-44-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> 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, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Binutils?= From: =?utf-8?q?Arsen_Arsenovi=C4=87?= Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773572592896408721 X-GMAIL-MSGID: 1773572592896408721 From: Philip Herron This allows us to invoke the rust testsuite. * 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 1ea798ce1a3..870150183b9 100644 --- a/Makefile.def +++ b/Makefile.def @@ -705,6 +705,7 @@ languages = { language=m2; gcc-check-target=check-m2; 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 4a46cd3e871..d242a813ed7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -62273,6 +62273,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.