From patchwork Tue Feb 1 13:52:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5026 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Jp5wn46yCz3wp0 for ; Tue, 1 Feb 2022 13:52:57 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Jp5wl2Zx7z4R9; Tue, 1 Feb 2022 13:52:55 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Jp5wl1952z32K9; Tue, 1 Feb 2022 13:52:55 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Jp5wj5wtGz2xLF for ; Tue, 1 Feb 2022 13:52:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Jp5wh6S1pzTp; Tue, 1 Feb 2022 13:52:52 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1643723572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=p/Cuhdp7r7+DbhRNPauIsifr2goIsPl/LYY8uh3+oQk=; b=bhqFOMaDprr2DCtFmyoj0D4I75WA6g4MD2y+OC3PKfBzfIklCH0+WbpS3+UbZhUTC+A2Nc DNbH93CT7Gvrf+AQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1643723572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=p/Cuhdp7r7+DbhRNPauIsifr2goIsPl/LYY8uh3+oQk=; b=KKeB9u4FvYTuHe2YNPiaSgMOmheJ/H2skZf91leBTyl7gkUtiqTSq4bODgs5kETw2mbqAy mHZTnHpwwQT3/MCsFbGT2+6+rCn3XMtkMwuvO17wBigi4zna271OJXn2UrxC3CcKt5xggd Uw5Xp8oiw6dysLV08if7PUxUabVik35flcnHLuraIW5T/Bpu+ScyuHgxDVMxZF5Sjnzrfc zT6qPviV2OfCLyS4Pbne+0jKqLlCgjb4FGOhTDO5bV4zmWtMINMbeRf6tSAclDw00fEi+o OJCIW/HZhfTCrzgwVyPlQ8j5PSFrMNQ9kXhUTbGnCkMJndo5HeRPlsSoknf34w== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 01/10] make.sh: Set a good default for rustc flags Date: Tue, 1 Feb 2022 13:52:37 +0000 Message-Id: <20220201135246.4096955-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make.sh b/make.sh index 378cd35eb..5f22f7409 100755 --- a/make.sh +++ b/make.sh @@ -170,7 +170,6 @@ configure_build() { CROSSTARGET="${build_arch}-cross-linux-gnueabi" BUILD_PLATFORM="arm" CFLAGS_ARCH="-march=armv6zk+fp -mfpu=vfp -mfloat-abi=softfp -fomit-frame-pointer" - #RUSTFLAGS="-Ccodegen-units=1" ;; riscv64) @@ -205,6 +204,8 @@ configure_build() { CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}" CXXFLAGS="${CFLAGS}" + RUSTFLAGS="-Copt-level=3 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1 --cap-lints=warn ${RUSTFLAGS_ARCH}" + # Determine parallelism # We assume that each process consumes about # 128MB of memory. Therefore we find out how