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 972E449A42 for ; Sat, 27 Apr 2024 13:49:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1F19968D2D0; Sat, 27 Apr 2024 16:49:52 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8C8C968C682 for ; Sat, 27 Apr 2024 16:49:45 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 5777327FFD708; Sat, 27 Apr 2024 15:49:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1714225784; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ZEE9fzG2EqXwznVeNWoLaidWzNUK1gEn7n3mzQASGDA=; b=mKIIZw8EcnsLIT4kIIo3a1UnFb/vvpOwJWIsabG3D8kZDBOwJ+SJmrtLB3yHrP4jap1M92 yy8n+Ps07/gW6N3ErzfjTGcykdD3FKZtCHOo3PwBIj6pXSGMqatebbo9TkZKY37fO6EcrV gQLAj/jXLjoUm1AlKkjEB85nOdwQafJokURitMCHSajGENQ6buhAjb4R2q7Um/E/uIaeBT gDs+qdyRIbH75YYQ2CwXIreHm2FMDXzCt+5Q1U/zvQvl3uaQ8duivUGLFJecEKc+DvXzBL uqA8llLSZXd4/kxib3F2kl93D9qeukTaGJcJ/C4XzE05z53JZeOg6NHtbzO3xA== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sat, 27 Apr 2024 15:49:24 +0200 Message-ID: <20240427134936.32677-1-timo@rothenpieler.org> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] 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 Cc: Timo Rothenpieler Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8101b4fce6..b872c37933 100755 --- a/configure +++ b/configure @@ -5036,7 +5036,11 @@ 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, / /)) { cmd = "wslpath -u '\'\\\'\''" $$0 "'\'\\\'\''"; cmd | getline; close(cmd); print "$@:", $$0 } }'\'' > $(@:.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" -- 2.43.2 _______________________________________________ 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".