From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8A2FB48AED for ; Wed, 1 May 2024 16:54:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E212668CFFC; Wed, 1 May 2024 19:54:28 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B0C1F68D546 for ; Wed, 1 May 2024 19:54:20 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 2D9FB27FFD6CD for ; Wed, 1 May 2024 18:54:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1714582458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7CYZg/HjgLobVnJ66M3Cf7M39JIYQ6QV31owUsJd5yI=; b=NTuCEUEfTaofUdFbGE9qqQi90vxHAVlO6FFWOQljxxjRIyF0C8NmsAek7eUycar5E1j2LR EAvgr5WppDhwb6GPPITvD9yQHnoay80BnEnqgGablkITHWfq3Ny2OiNZY0Rmu9xmNqXK+W ySber+wR5tPY9V4g1Y5goz7Jmb9crMPVVMShdwe7k3PFk26Ugumeu5YZuG0nB64+5ygvoh Ku53exTxRLBHAUyQZ1Tb2yaDmLxy4RZC5zANWPCKBQHYiSkfVuPfrfHcqbmP6F3RMFx+Cd VXPXoMw3yTGB5R8J6bzVdT09RQHGqzHAm6eqNnuGWKW0wrbGj6ym4Onh/aY+tg== Message-ID: <4f5d65a4-2f7a-413e-9ba6-6cfc0702ed0f@rothenpieler.org> Date: Wed, 1 May 2024 18:54:20 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ffmpeg-devel@ffmpeg.org References: <20240427134936.32677-1-timo@rothenpieler.org> <20240427201448.26469-1-timo@rothenpieler.org> Content-Language: en-US From: Timo Rothenpieler In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v2] configure: support msvc build inside WSL 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 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 01.05.2024 17:06, Alexander Strasser via ffmpeg-devel wrote: > On 2024-04-27 22:14 +0200, Timo Rothenpieler wrote: >> --- >> configure | 7 ++++++- >> 1 file changed, 6 insertions(+), 1 deletion(-) >> >> diff --git a/configure b/configure >> index 8101b4fce6..89af5f75e7 100755 >> --- a/configure >> +++ b/configure >> @@ -5036,7 +5036,12 @@ probe_cc(){ >> else >> _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d '\r') >> fi >> - _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' >> + if [ -x "$(command -v wslpath)" ]; then >> + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); if (!match($$0, / /)) { print $$0 } }'\'' | xargs -d\\n -n1 wslpath -u | awk '\''BEGIN { printf "%s:", "$@" }; { sub(/\r/,""); printf " %s", $$0 }; END { print "" }'\'' > $(@:.o=.d)' >> + >> + else >> + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' >> + fi >> _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' >> _cflags_speed="-O2" >> _cflags_size="-O1" >> -- > > Should be good enough if it doesn't break MSVC builds outside of WSL. Unless there for some reason is a wslpath binary on the path, that won't be an issue. Will apply shortly _______________________________________________ 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".