From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cPd6HW8snmHzrQAAgWs5BA (envelope-from ) for ; Wed, 24 Nov 2021 13:13:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CL89GW8snmHadAAAB5/wlQ (envelope-from ) for ; Wed, 24 Nov 2021 12:13:35 +0000 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 7BB4BA384 for ; Wed, 24 Nov 2021 13:13:33 +0100 (CET) Received: from localhost ([::1]:46692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mpr9Y-0004qO-NK for larch@yhetil.org; Wed, 24 Nov 2021 07:13:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpr9G-0004qC-Cf for guix-devel@gnu.org; Wed, 24 Nov 2021 07:13:15 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpr94-0007it-0T for guix-devel@gnu.org; Wed, 24 Nov 2021 07:13:14 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1637755975; cv=none; d=zohomail.com; s=zohoarc; b=BJvQuIOsvU+206Gtb4cdtWfcaibf23+dYTFwNPN1k3fOPh36uZ7InR7QHzR0oEnnSP4/mMmgwrd6jPsCL66N9mR0T9ppxkwXfO03ZGbBonYRes7zR17siqjMf3Y10CDgVgbR3ZqQhcH5Z0HPMDE8DeGkY8b6E13oYY1QhuCRGwA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637755975; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=j7VPV2bZoODmNYpJUIKf+tlFfjYaucdpY1BF/2ugX5s=; b=L5KqD/MC8ZFxXujDyngSqOCIuILaNEy9UeeuRi9d6QaifZZKf9Lwsn78HAw1OIdpyM4Zhlw/i4cW+GSnnguSwgPX8CdKwroQKm+r5vW3SvSGLrt9cv2SVUhFbdyB1wNJPR3jr5V2b4IW3k7lBUdPlFQVTs8Wq7VCGMNn/7rvbxU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1637755975; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; bh=j7VPV2bZoODmNYpJUIKf+tlFfjYaucdpY1BF/2ugX5s=; b=Xemnu+PtJ6N0igREBjGSibvTZkjuYtVNM5OizWMh1eduRkQ3TytrN+5XgNXjrfom MVAxU7P1wVgjqAFQgbPGkOtPVCVKb2N2a9Ct/2hH05g/RCm9hc7nANrtN8nIpD4pkzO Nez5uZ24UYxHILJ6fsv9tTI6SsALZczpWcNrou1g= Received: from localhost (p54ad4d8c.dip0.t-ipconnect.de [84.173.77.140]) by mx.zohomail.com with SMTPS id 1637755972498249.79053085926625; Wed, 24 Nov 2021 04:12:52 -0800 (PST) User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: guix-devel@gnu.org Subject: build system option to allow CPU optimizations? Date: Wed, 24 Nov 2021 13:10:03 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87ilwhu4zi.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637756015; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=j7VPV2bZoODmNYpJUIKf+tlFfjYaucdpY1BF/2ugX5s=; b=BvU3b/XnJLa0MeLpfb4GOA0nK1xJehtaBbNbYXwZdE26XrOkEJ0tkjW8BO2SGqMX+eZAy4 AG+WVFWgXREPLHWlOTf0Mn+jCcrfehFLx7sBbNLfdlIqpiFHNrEM6yRilfPRAi2rzv004D 630ebclFd4Qx5tcdb8WeRY6IuXKZGesFOjfyaMqudiX4dA0dZkWcU9swOF63AjdZy2PRL2 pBcUSGC99PxuOWffPB0G0A2J8IGKe1Hw5ItHoEB8sAdrxodr474SpwufLE6zbOyiZSkB84 WzQhNvk0OMlxEc03Tyz7SNMqIuGYNGjuDTaL4ryPnhJlyXypobXD14bgh5kKsw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1637756015; a=rsa-sha256; cv=pass; b=ODovyqddrOKzxWZVrLe6latqQ7T5NjLHYAYOyjPD9JWE8ZsSSMkWhylkX5I40poI0ZS3OP NDxaZrzEbRZXQ34k5kXIAzjZQI17sJXDUxeHC87LMQBQhXQwicanm2lgVuX3kbqNjvQKgF sRgZHR6ZsJOkPYNFcSbBEsvObLX4MNm1npTv2BzG/3jxLjiXCFhZqG5r9wrh6ftyDY9dxR dqd2ghMJaweQos0hBRzdMusagzG0KEs3DTcXxU6rPfvkrDHAkJcVTwjcDWe1lv9KoAm7gP uBwJ3kGvv8VVbbKQ4shE+hkTRcR9P0eYO6PHv4sfhITFx4HqFDAHmxncBe6pEg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Xemnu+Pt; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" X-Migadu-Spam-Score: -3.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Xemnu+Pt; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; 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" X-Migadu-Queue-Id: 7BB4BA384 X-Spam-Score: -3.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: eYIEdmhqbPa1 Hi Guix, currently we patch source code and build systems to ensure that no special instructions are used that would not be portable, e.g. AVX2, SSE4.1 etc. What do you think of adding a build system option that would allow users to restore these optimizations? The build phases that patch out these features would have to check for that build system option, much like they check the TESTS? option before attempting to run tests. What do you think? -- Ricardo