From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id C3A564B5FC for ; Sun, 25 May 2025 14:50:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 68E5668D5DD; Sun, 25 May 2025 17:50:15 +0300 (EEST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 1D0F568D3D8 for ; Sun, 25 May 2025 17:50:07 +0300 (EEST) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-54b10594812so2043773e87.1 for ; Sun, 25 May 2025 07:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1748184607; x=1748789407; darn=ffmpeg.org; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=8zVeVobeYVrxViUqzF/ceJhvl+jxMz7FQixxn6+TJRY=; b=sIaQiPBQ/JPMw65eFaNvzupJi2hccicb2tP/I89h6BNgfdwSEW+H8NGMzBaZMOJocp Bn0Bp3jlVAV2A5zeM9Dp/7J+RROm/Qyck9Mxvj8rVTge7Zc0ofhynFRyz1ByXd74JO8c 9VgJXoOlcFBlGbacue9Xfr6jDMbqa76NZ2Xw3FiYxrwPjJR1odMYYMd5nEa7/dbLi6JN 5UqSZB2iwwiDi+fUUVSKudDFCfIbGvVI3XEpV9bhvQcxUcOEVT76xLwXYv2CcQxLlBVw Ld92L4kExqgfi8h0QK6SQVmcsQE6gjx2l3tYX7Qj+8ufFDC+2vpG6rY3kQ+YZSoc9tcy YM3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748184607; x=1748789407; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8zVeVobeYVrxViUqzF/ceJhvl+jxMz7FQixxn6+TJRY=; b=Jgw9lCR5XtTsd9pk4CEp1et9ksrm/t0J5sf/D/jVQQw18rbNx9tdd1syMRsRBBj5lf bCLvRxKwrE3DG8896Cxc4nHl7uG4eoM3Ld5X31F0+miOdt1qQnEPPnqQvUMoIWAlTe0J KABKUhiLzkt0pVGzZo059UT/ZmwQP46ZCZR0wOOBWQBMlI/D4vRexcgo16kbuBHMYiXb GFYPJYsrqqZuyRIyO5+xcblgz7XTmrD9DyntUDif92Uw0R60oM+OSH/qOpZOUFKBrBZx XkOUgzi3AihByfzquO8fhJMjMVvduFQGZi5R0MePo3hySSTSgXSOR7lvHrCnoGqb719L HGqA== X-Gm-Message-State: AOJu0Yz7CaooXRMpBKdFJOiO8FVrsp1UlHl/HeqydS9hPyu3LgLESO9g xAR4dJgtPU520GKF9HITMgpTQKc6pFYFXdn7q3fmPs0mDXoVUij3FZICLC73kdYKBbnCYupGcaq HzBE5fg== X-Gm-Gg: ASbGncvuocFEz52KVT4nVTfy8g5nnTUhkvjIJ+nfQSl/97dwlipzAUo3lm7mXAzxlhS h1XT+CPNgcxWeZYEWp7xFwWX3S/gh5fCo07KNVLjAAOtu5JPtz+l89anqNBpir94cAOLSmo4XtN Jtk975WWSM4xY051KYwcQPBu7lDZYWWSp9HZeITuUQqcmalvxZ2pi7KwoFfyObKrQRYuDZ7V2fk QyLXPIxSLywwELZw8CiK2rPrbVfWRpcbvHRswIQNhwFM/x0QiKUoOmUHUebA8DMfFGuKa2FxW8T vXWjzy5ZVLmhZQJfUN0LuFjkmdFKxzHOVZrBJPtCe4UkyHt/2O4bizx7E41sVjRwiLu/0UZgOLq FW24hBpiVl/vxBc+vGqs2gZpwE3CQjq33WGNVoTm1G547bts= X-Google-Smtp-Source: AGHT+IEHXv4VwVhtuwiysqbEsiSwgk4DWX6yg0p8j/UuuM+2hoWTi0x1rJ+ApLlL0AxWULmHIvhVwA== X-Received: by 2002:a05:6512:2252:b0:54f:bc9c:b031 with SMTP id 2adb3069b0e04-5521caa90bdmr1607921e87.55.1748184606703; Sun, 25 May 2025 07:50:06 -0700 (PDT) Received: from tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net (tunnel335574-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:11::2]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5521bfdf9f8sm803282e87.258.2025.05.25.07.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 May 2025 07:50:06 -0700 (PDT) Date: Sun, 25 May 2025 17:50:05 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: <20250523093201.1534-1-coiaprant@gmail.com> Message-ID: <7a95fb9-63c-7ec-52b1-e39dfaba7c0@martin.st> References: <20250523093201.1534-1-coiaprant@gmail.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] fix(configure): fix detection on windows X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Coia Prant Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Fri, 23 May 2025, Coia Prant wrote: > On Windows Arm64 > `uname -m` returned `x86_64` instead of `aarch64` > Link: https://github.com/msys2/msys2-runtime/issues/171 > > On x86 32-bit toolchain msys2 environment > `uname -m` returned `x86_64` instead of `i686` or `x86` > > So check MSYSTEM_CARCH on windows (for arm64 and i686) > > This problem also in VideoLAN/x264 > Link: https://code.videolan.org/videolan/x264/-/merge_requests/177 > > Signed-off-by: Coia Prant > --- > configure | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/configure b/configure > index 2e69b3c..ed30b6b 100755 > --- a/configure > +++ b/configure > @@ -4157,6 +4157,8 @@ if test "$target_os_default" = aix; then > arch_default=$(uname -p) > strip_default="strip -X32_64" > nm_default="nm -g -X32_64" > +elif test "$MSYSTEM_CARCH" != ""; then > + arch_default="$MSYSTEM_CARCH" > else > arch_default=$(uname -m) > fi > -- > 2.49.0.windows.1 This approach seems reasonable to me. (On i686 vs x86_64, it hasn't been an issue, since they all map into "x86" within ffmpeg, and configure then checks the bitness, but for arm64 it's indeed an issue.) I can push the patch soon if nobody minds it. // Martin _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".