Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4sf9-0006G2-WF for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Dec 2022 23:56:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p4sf8-0001CA-Qt for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Dec 2022 23:56:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4sf7-0001Bx-7k for pgsql-hackers@lists.postgresql.org; Mon, 12 Dec 2022 23:56:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4sf4-0002Di-2g for pgsql-hackers@lists.postgresql.org; Mon, 12 Dec 2022 23:56:44 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B639B5C0179; Mon, 12 Dec 2022 18:56:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 12 Dec 2022 18:56:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1670889400; x=1670975800; bh=XRDIniDi87 K4X5M2Ljg8Iic94U6l3Mv7kNpkzJ62cd4=; b=LQ9g1gC8pi3T+6Y19JE0ibK+Vu bO9ZXoGGJuaG0DfcwN6f0jTX/5e2V8I+gPH8ULFPk1ixJkrQy701W6xpNPpVjtlf G6LaBs0JmVfqugnWPvI8uzPVHzj2WVTY1Oo5JKKMG1jxqIcfO+6Bn/Dq5XyWmhUb NFdrAHW9CG4HeDdt2ZkS0Bz2h1udZdR6YRtbw+5N5yCC7EbR6KKHQJTCDOsxKkbT 5MT6Ct1WZxV6lXlXb+aYYK1J6YDVPF7iTHnMGt7WGwYN+ZvQT845w96f6srfzdGf qcpaso5KEM1A6Jx/jTsH4DiBhOHWvKmjCxJvsZHYaLAcdErTEPh6n2hj9t1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1670889400; x=1670975800; bh=XRDIniDi87K4X5M2Ljg8Iic94U6l 3Mv7kNpkzJ62cd4=; b=LCp3DcU7q+gNfBCfxE88QNJVh3TDKgW8kNkOn4T2acAi IR+kH8KwoPGqU6Dj3kgUjiAQAIBADFBc0T+TNb/OhkrnBREu8jnzO64N8ifWMXCb JchM6UIfsH3blhsc+wZ/QZcjC618H2Cj2yjudA4uchz1yjZQcGXqiehioF2oDnNT ZPXOCnBfzGyjwRSvhAXdddYxUgQo7JGO5DSR7S1SlS6akYfJFLmz2W5y147wyUM8 SPKX5P8dyTUrUDnjz2jG85M+uedUnvbWFneFMuhCqFJr4fKn8PTMWZd/gKhg1Khc R4PT7c4FsN6JT7Ee67mb5nWfUa6phZHXXdVuywHf1A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Dec 2022 18:56:37 -0500 (EST) Date: Tue, 13 Dec 2022 08:56:33 +0900 From: Michael Paquier To: Niyas Sait Cc: Andres Freund , Ian Lawrence Barwick , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers Subject: Re: [PATCH] Add native windows on arm64 support Message-ID: References: <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> <7ff7c416-fdfe-517f-a65c-9e5bd8ff8cec@linaro.org> <8d46c46d-66d3-758b-b686-de371e0ba8ca@linaro.org> <20221205181449.47mhosidtmotemdl@awork3.anarazel.de> <6cfaaf3c-7fb5-51c8-92cf-ceac6303ef66@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+zpUR8BFP3V02/4V" Content-Disposition: inline In-Reply-To: <6cfaaf3c-7fb5-51c8-92cf-ceac6303ef66@linaro.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --+zpUR8BFP3V02/4V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 12, 2022 at 01:38:37PM +0000, Niyas Sait wrote: > On 05/12/2022 18:14, Andres Freund wrote: > I think the old build system specific part is really minimal in the patch= =2E I > can strip out those if that's preferred. Removing all the changes from src/tools/msvc/ is an approach that works for me. >> Why does this need to be hardcoded? The compiler probe should just work = for >> msvc. >=20 > There are couple of minor issues in the code probe with MSVC such as > arm_acle.h needs to be removed and requires an explicit import of intrin.= h. > But even with those fixes, USE_ARMV8_CRC32C would be set and no runtime C= RC > extension check will be performed. Since CRC extension is optional in ARM= v8, > It would be better to use the CRC variant with runtime check. So I end up > following the x64 variant and hardcoded the flags in case of ARM64 and MS= VC. Hm.. Andres, do you have access to Windows hosts with ARM64 underneath to validate any of that? No way to blame Cirrus for not having this option, they already do a lot :) -- Michael --+zpUR8BFP3V02/4V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmOXv7EACgkQnvQgOdby QH1OMQ/9FTmbmR3uvKw4n3WQ51aCSAelU2i/uz9iCXwtM365SMYY4qrqGimJzakZ BtLK61yiFqrdBz3zfBAoH3S5+lJYq3cxXLb5v5+skdkxT/b+h1W7GGWuIfB4wk7Q q0JXH/zs6ZfYoI/xNE6gigIoLpMWMutXlf8jB//Bqsc0pQpyzMXjVPMgpwV0K44T iBDA5k6n6s2L3kkpCS9agU+dQnziAHTmfob7qnk1PSgR1AXsQ/ydV7zuVw5Nfx7E z1cBe5NJLepvkzY0fQBFSDcvaZNW+99XyQF2KHxKe4+h2Z8CWdSo6AaF7Z13bCBW zZkZrWM7E8jWM/Q6LYcOcX5NGQ7YAIASC/feUik2TFYpE+ilTNQFWr1nrc2GBGYN L6I2OUdjox+JmeiNVcPQ8yNGFqXvQ4onETe/wJvF/ynEYwau+Cb7L8lPbhbQCCAM sSWS6HTP5fl3ljaZH5ORiyp0tIWJ4XvODtHuVBodM+n4yKrjsIqy6d6igmdY23VI ytbu4zMY26BrXF5RjhjVo8RbA3yyEYLFOpcKGULH/fFtGZtSty0uv8TupTptaXW0 FvOM/HjJdCD475MVfZw9rtr/VZfu9I5FfBpJpTYlvelP2FYje6xqD3dQxwttQVmy jSD9tOP9OBBcln5aEKn+dkvfsoHqec1+AO9DanZ2kN5cZvjr4pg= =4Dpi -----END PGP SIGNATURE----- --+zpUR8BFP3V02/4V--