From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mGgcAX1VxmYQEwAAe85BDQ:P1 (envelope-from ) for ; Wed, 21 Aug 2024 21:00:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mGgcAX1VxmYQEwAAe85BDQ (envelope-from ) for ; Wed, 21 Aug 2024 23:00:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=cartZLUU; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724274044; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t+rW41NQJlstD7TSmFkgrd8KagbQA3kguNoHKQIGOOI=; b=AnWOEIQpwUPxCqEuLrzZT3gGrmFdMM6iiFgiUvjFUbP59ewf6m7FGoYv6pZDveeRl0tKOA g3LjxA8fuXfoXynvMnPn3KxHduFgijz9iMgz7yYhSUKMZpLhp4qDWqq2RB/YAtKJVQPmLr hCPTLjCJsterns717Yjn7JfBO+4rIRh+m4P5WpzfM+sWy1JoHpsAbOqfKkteQNLbhT17Ma 64+J4bxaw9C3cg4ldslYKEsJtC6XhNxQjQftW49ilcjvsYNbuRhyxhhsjK0iTlDuwVslSE M98/KMOO60K3EMTra4u8DlWnVlTIlDdKi1oCDOTiJh1bo3Lu/ArKkbDCnk9GkQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724274044; a=rsa-sha256; cv=none; b=HirT4IYrzPB98NmzzqbBiSyAFuMtzMjY6pTOKF0DER26Whakx2XXEcohavx4rKFRsSJOqM FkrmMyr31lXiAMv/PccFSNBZhxOmwznoCIfnJuLQ9aqpAitGsuSkefE8pUFnDlUeqYJroZ kodbCmjIv3Ps52IJlbjlmNhghpUf3oTqX+aDXlHwtgn31ujb31f+4oohH93dunSNLBGCRj 90fxkRXfOSV5axrReUPwXQthY7V+2jm4OZ69y3zOCsEff84qCuFg4mo1V149T5mTrTxa2C 8BHh+eudmrU9bt2Lj9GVeY8B6YkMU3G6tYog3z/2qiywZ0F7pJ6ixG+Q6H9EdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=cartZLUU; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 909DA74C70 for ; Wed, 21 Aug 2024 23:00:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgsRW-0007Uc-Ks; Wed, 21 Aug 2024 17:00:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgsRU-0007U9-W7 for guix-devel@gnu.org; Wed, 21 Aug 2024 17:00:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgsRU-0001ay-FM; Wed, 21 Aug 2024 17:00:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=t+rW41NQJlstD7TSmFkgrd8KagbQA3kguNoHKQIGOOI=; b=cartZLUUIXad5oyJy+eU jNtXtHNJNTSqxdno7dOAe4wi/ACCmBqYq6MVHYYb3NtqBk3E82rib6KBk7hvRDYLMMp2JllzP58pE KsRiNLDzS5secxcODvofHjO9grwY9qwgdEBa/6APyDI/Li8KUFmSr2rbg/LUeqAgNS+wOyD83PNvu Na9LB5U2gEHisZ94E9N7rcqVQHpESHQiYZ6qlrEqoG3qTB+bXYnr2fUL+ciyh8J161N+ibZ1lfNhq CsaZ4WvcRbeinH1JgR27k7aq0/P9H3PQHVh5PtlQxsICrNgk++Of9PK9v+ztfIruEqdOttgn9iX8T gmNDduh2bBNF7w==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Marek =?utf-8?Q?Pa=C5=9Bnikowski?= Cc: guix-devel@gnu.org Subject: Re: Global modification of #:make-flags In-Reply-To: <87jzgbo6hp.fsf@marekpasnikowski.pl> ("Marek =?utf-8?Q?Pa?= =?utf-8?Q?=C5=9Bnikowski=22's?= message of "Tue, 20 Aug 2024 12:04:18 +0200") References: <87jzgbo6hp.fsf@marekpasnikowski.pl> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 Fructidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Saumon X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 21 Aug 2024 23:00:28 +0200 Message-ID: <8734mxpp5f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.21 X-Spam-Score: -8.21 X-Migadu-Queue-Id: 909DA74C70 X-Migadu-Scanner: mx11.migadu.com X-TUID: Kgy5VL/uI4G1 Hi, Marek Pa=C5=9Bnikowski skribis: > In order to prevent the XY problem, here is my goal: Rebuild the entire > system with -Os optimization level. It is an experiment into viability > of hardware-targeted optimizations. Instead of trying to override #:make-flags, which is likely fragile as it depends on details of each package=E2=80=99s build system, I would use a strategy similar to that of =E2=80=98--tune=E2=80=99. For =E2=80=98--tune=E2=80=99, the =E2=80=98tuning-compiler=E2=80=99 procedu= re in (guix transformations) produces a compiler wrapper that passes =E2=80=98-march=3Dwhatever=E2=80=99= , and =E2=80=98tuned-package=E2=80=99 injects that wrapper in the package of inte= rest. In fact you could reuse most of the code here to do what you want. And we could create a package transformation for =E2=80=98-Os=E2=80=99. Could = be neat! HTH! Ludo=E2=80=99.