From patchwork Thu Aug 1 14:56:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arthur Cohen X-Patchwork-Id: 1967722 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.a=rsa-sha256 header.s=google header.b=IhIa+c2c; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WZXH33qbJz1yZv for ; Fri, 2 Aug 2024 01:01:35 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B96D33860C3F for ; Thu, 1 Aug 2024 15:01:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by sourceware.org (Postfix) with ESMTPS id AADC9385DDE9 for ; Thu, 1 Aug 2024 14:58:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AADC9385DDE9 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AADC9385DDE9 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524320; cv=none; b=p0NR1peorlKo0v9k3s+k4PbMjzKwfGgQzKl/J0LWDOszlHYhKGk+LFsy438HXbjHgJSdv+PqPsLg/z1dWjc4xITVE3mHixzlIjkFzJxGtuhJpVBehk1J+cs1gFkVaq+Z/T2fic7WABCaPFWrXadUuNVFmvmjY7uZtt1GlKBMx3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722524320; c=relaxed/simple; bh=eNRkNkUobvsDb51THrVwumcNWVYOjJK/FahZjqcnQ5I=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LPNcpUV48H1Zjjz0+EToLMKyUAugPtqySrbv+txzinloUyab/ggPoXmisanQ9mh47zPXhm7DHqlUKZJVlaay40mriVj5GIEIY/9g0VytLy32IDKmMM7q8tkPBTbSpeGhxQVTF1t5eD7lwf7SGsdqajypSTLfDzWcIs36iZmJFYE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5a20de39cfbso9294261a12.1 for ; Thu, 01 Aug 2024 07:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1722524316; x=1723129116; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wiFHF3k9TIOJt0GQMFRPwzHhqKesN2d505HTRnBNA+A=; b=IhIa+c2c31g4QMOI9+yC7fsospbtuPpjQR5Cm3ngRNZGFh0Fx+vXU5IPbNlCZNZPNg ZRFJ6bsuFyKA8IxKRzh8sw8uRJveXZNr4+oLmXJVyNIoQ5TxKkInDDEmsCFx8eU1Tw3P CZMbizIjZ5znvTVaiu9dwhZmv3Bn8yImE7eqaZjtumVUy/AneRDjTUOvNatfZXpo76px tsSImVWf63nMR3iEyJRDhR1vNt4sQ3O2Dl9c0m+BP3JltDcznM37zNsSWtFODwwzRcuE T6gCrVKzRH25EjZcrztwgOCDIgTey715yzuvnkIAyl+Rx91Zah65zo5i4U5wutWtjvzw KyEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722524316; x=1723129116; h=content-transfer-encoding:mime-version: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=wiFHF3k9TIOJt0GQMFRPwzHhqKesN2d505HTRnBNA+A=; b=J+N0xv5CSkImdPaz/F6Fx4KluPB8hBtsyR5v/XAk4TJ1k8/NvGtw+lUpWSlpiySBqt xg6wSMIb/0VQ5dp/j4BP1S1pgI2zFObokZdKrAEBvwD5q2wYb46lf0aNxvXiRoWUEueM c0oA/njtCMD5HipLxln/K3IU52gsjMeXdDLgH4ktT7GrNXPYCe2U/rq9DXI7FwvBHoMj Ezrls+PFVTozHYGdwmJAXsQ3pT8WO+WuOvDfC3ECcV47a3X5ztFtHb+jM1h+0R0yUO6b ZEi44UHNQwv5zqcSl/EbidcL756zoGocBiNrEJUU6J8KV9dcPJbP0yv3XbuysLXwe4tv H2oQ== X-Gm-Message-State: AOJu0YzEhtaZ0hgcmOUqWzXsQ5WSmBWNdOksXFyjxWnl1HxWrbWwykPj DWasDb271wLvFhHanaGU233dHrPLxTFwCpvSd0Pp2PMBXToyfpY6VV79bkelMCoK7pAotqN6aCo s/ucy X-Google-Smtp-Source: AGHT+IH3hYXASSQ2RuA0b4zfzOIu6uytNiuy1PKika4vu66jzYVufIfZ33tLKjPrhqC/2JzRcBK52Q== X-Received: by 2002:a05:6402:a50:b0:5a1:b0b2:798d with SMTP id 4fb4d7f45d1cf-5b7f540af79mr461286a12.25.1722524316600; Thu, 01 Aug 2024 07:58:36 -0700 (PDT) Received: from platypus.lan ([2a04:cec2:9:dc84:3622:6733:ff49:ee91]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63590592sm10252456a12.25.2024.08.01.07.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 07:58:36 -0700 (PDT) From: Arthur Cohen To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Thomas Schwinge Subject: [PATCH 008/125] Rust: Don't cache 'libformat_parser.a' Date: Thu, 1 Aug 2024 16:56:04 +0200 Message-ID: <20240801145809.366388-10-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801145809.366388-2-arthur.cohen@embecosm.com> References: <20240801145809.366388-2-arthur.cohen@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 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=unavailable 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org From: Thomas Schwinge gcc/rust/ * Make-lang.in (LIBFORMAT_PARSER): Point to the actual build artifact. ($(LIBFORMAT_PARSER)): Don't cache it. --- gcc/rust/Make-lang.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index bcf424e6c18..497a3c76166 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -212,7 +212,7 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS) rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o LIBPROC_MACRO_INTERNAL = ../libgrust/libproc_macro_internal/libproc_macro_internal.a -LIBFORMAT_PARSER = rust/libformat_parser.a +LIBFORMAT_PARSER = $(srcdir)/../libgrust/libformat_parser/target/debug/liblibformat_parser.a RUST_LIBDEPS = $(LIBDEPS) $(LIBPROC_MACRO_INTERNAL) $(LIBFORMAT_PARSER) @@ -417,7 +417,6 @@ rust/%.o: rust/lex/%.cc # TODO: Improve `cargo` invocation with host specific flags, possibly creating a $(CARGO) variable? $(LIBFORMAT_PARSER): $(srcdir)/../libgrust/libformat_parser/Cargo.toml $(wildcard $(srcdir)/../libgrust/libformat_parser/src/*.rs) cd $(srcdir)/../libgrust/libformat_parser && cargo build --offline # FIXME: Not always release, right? - cp $(srcdir)/../libgrust/libformat_parser/target/debug/liblibformat_parser.a $@ # build all rust/parse files in rust folder, add cross-folder includes rust/%.o: rust/parse/%.cc