Skip to content

Commit

Permalink
configure: pass windows-path to nvcc whenever cygpath is available
Browse files Browse the repository at this point in the history
It might be using cl.exe on Windows, which does not understand Unix-Paths.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
  • Loading branch information
BtbN committed Feb 26, 2019
1 parent 590e9d4 commit 0281c22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions configure
Expand Up @@ -1030,13 +1030,15 @@ 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() {
log check_nvcc "$@"
disable cuda_nvcc
test_nvcc <<EOF && enable cuda_nvcc
test_nvcc <<EOF
extern "C" {
__global__ void hello(unsigned char *data) {}
}
Expand Down

0 comments on commit 0281c22

Please sign in to comment.