Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2019-02-26 19:09:26 +0300
committerTimo Rothenpieler <timo@rothenpieler.org>2019-02-27 20:03:17 +0300
commitc775410f318353941dc980b78f2ed4807ee66046 (patch)
treeff405e241f4c892641ea4469588f2d03e626b9fc /configure
parent114ead9735f226e5824a15b94b32344436c96a71 (diff)
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@rothenpieler.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
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() {