[FFmpeg-cvslog] configure: pass windows-path to nvcc whenever cygpath is available
Timo Rothenpieler
git at videolan.org
Wed Feb 27 20:01:05 EET 2019
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue Feb 26 17:09:26 2019 +0100| [c775410f318353941dc980b78f2ed4807ee66046] | committer: Timo Rothenpieler
configure: pass windows-path to nvcc whenever cygpath is available
It might be using cl.exe on Windows, which does not understand Unix-Paths.
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c775410f318353941dc980b78f2ed4807ee66046
---
configure | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 6c6c1c44bb..1fbde5d3e3 100755
--- a/configure
+++ b/configure
@@ -1030,7 +1030,10 @@ test_nvcc(){
log test_nvcc "$@"
cat > $TMPCU
log_file $TMPCU
- test_cmd $nvcc -ptx $NVCCFLAGS "$@" $NVCC_C $(nvcc_o $TMPO) $TMPCU
+ tmpcu_=$TMPCU
+ tmpo_=$TMPO
+ [ -x "$(command -v cygpath)" ] && tmpcu_=$(cygpath -m $tmpcu_) && tmpo_=$(cygpath -m $tmpo_)
+ test_cmd $nvcc -ptx $NVCCFLAGS "$@" $NVCC_C $(nvcc_o $tmpo_) $tmpcu_
}
check_nvcc() {
More information about the ffmpeg-cvslog
mailing list