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 1p0nCK-00054B-58 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2022 17:18:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p0nCI-0004mh-Ip for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Dec 2022 17:18:06 +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 1p0nCI-0004mY-7m for pgsql-hackers@lists.postgresql.org; Thu, 01 Dec 2022 17:18:06 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p0nCA-0005b5-D9 for pgsql-hackers@lists.postgresql.org; Thu, 01 Dec 2022 17:18:05 +0000 Received: by mail-wr1-x42b.google.com with SMTP id bx10so3868237wrb.0 for ; Thu, 01 Dec 2022 09:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pkoRO4l35i/Snb11q1XNLnSb/EUGpxukHq49cU2bRJ0=; b=SM2dPgcKF6itNIp/yE1dmkNJGSjR0j1SmbtKwcIIHoqcBisoU8ISz9xR4zQByBsDGp RZXs3IS6akIjWEujUAtrctULn79IVGfAFcJTSoGPLNXXh1HzbgUPuF9XJw6RxmFlpqxg 9YaVkAoiYGQgowI9mR386I1FvlXuNFvBi6SNVwGsJWBu44OrdscMWxN+IOydWaCGXevr RnvulFsM+jgsdD5fAVRFomKrIeC0PWC0RLB+8vJpzh05op2ZRhSfLwbhUxd8/Z3xev1R Gsi2ajPUvLyMk4b+ww2ywMoMfaep0fSJ1m8WkJEpq6zxepVlg2GFXMWDrxVc05vfwDF5 4Z/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pkoRO4l35i/Snb11q1XNLnSb/EUGpxukHq49cU2bRJ0=; b=NjGatZ++EyZ312CS7p596SfHKl/MwQJ4Is+BurzWREx/u3fpGGou+M+tU/gLY55qWZ 7ICnevNE8BMx92A73KUg4MX5OPobEncDTlliTYOZ7XFBoBUOF2RqEMVuLWCH0J0cEUG9 ZpOJdX5hxIL9MlEgW5S6vy/e6zzGdKNY/FQL2UjJ9q5S0cGz6Bd+gkubqCoEm+asZov/ 9CO7/xKcE2jROvsgG3yHw5Cp4AYD1Jz7wB7QNBuzMBN1Lii16rWzNAMwdyQRxl7Sji67 2R835c2zN/wMgHx7AbxndbAixyHGOjE3pLNB3+nFtLkb1tLHheNeaqtXkF1GfYD6bbNg M5hw== X-Gm-Message-State: ANoB5pnIRAS+HppGY9XJeYZr0mXRAsQcJdheQqgQ1aaoZGvrAk5efn0r P0FMM6Jr8MWyKPcpAF/hnMef7g== X-Google-Smtp-Source: AA0mqf4eY2i8ZyYxq95YLw2ZYGmodlp65fdGBrkP+1kzdzdrAHe5E/X4XA/j25NN1PCivq8x5fSyBw== X-Received: by 2002:a5d:494e:0:b0:242:40bb:60c3 with SMTP id r14-20020a5d494e000000b0024240bb60c3mr912336wrs.684.1669915076134; Thu, 01 Dec 2022 09:17:56 -0800 (PST) Received: from [192.168.1.166] ([212.228.7.114]) by smtp.gmail.com with ESMTPSA id q1-20020a05600000c100b002422fddcc94sm4416493wrx.96.2022.12.01.09.17.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Dec 2022 09:17:55 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2022 17:17:53 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] Add native windows on arm64 support Content-Language: en-US To: Andres Freund Cc: Ian Lawrence Barwick , Michael Paquier , Tom Lane , Thomas Munro , Julien Rouhaud , PostgreSQL Hackers References: <3886822.1661905738@sss.pgh.pa.us> <20476.1661967233@sss.pgh.pa.us> <271611.1661998926@sss.pgh.pa.us> <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> From: Niyas Sait In-Reply-To: <20221105183136.hfxyl5dclxdcoyih@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 05/11/2022 18:31, Andres Freund wrote: > On 2022-11-03 11:06:46 +0000, Niyas Sait wrote: >> I've attached a new version of the patch which excludes the already merged >> ASLR changes and add >> small changes to handle latest changes in the build scripts. > Note that we're planning to remove the custom windows build scripts before the > next release, relying on the meson build instead. > Thanks. I will add changes to add meson build support. > This won't suffice with the meson build, since the relevant configure test > also uses arm_acle.h: > elif host_cpu == 'arm' or host_cpu == 'aarch64' > > prog = ''' > #include > > int main(void) > { > unsigned int crc = 0; > crc = __crc32cb(crc, 0); > crc = __crc32ch(crc, 0); > crc = __crc32cw(crc, 0); > crc = __crc32cd(crc, 0); > > /* return computed value, to prevent the above being optimized away */ > return crc == 0; > } > ''' > > if cc.links(prog, name: '__crc32cb, __crc32ch, __crc32cw, and __crc32cd without -march=armv8-a+crc', > args: test_c_args) > # Use ARM CRC Extension unconditionally > cdata.set('USE_ARMV8_CRC32C', 1) > have_optimized_crc = true > elif cc.links(prog, name: '__crc32cb, __crc32ch, __crc32cw, and __crc32cd with -march=armv8-a+crc', > args: test_c_args + ['-march=armv8-a+crc']) > # Use ARM CRC Extension, with runtime check > cflags_crc += '-march=armv8-a+crc' > cdata.set('USE_ARMV8_CRC32C', false) > cdata.set('USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK', 1) > have_optimized_crc = true > endif > endif > > The meson checking logic is used both for msvc and other compilers, so this > will need to work with both. Yes, will handle that. -- Niyas