Skip to content

Commit 1243a86

Browse files
committed
Fix builds for ONNX Runtime on Windows
1 parent 1b963b2 commit 1243a86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnxruntime/cppbuild.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ case $PLATFORM in
4848
;;
4949
windows-*)
5050
if [[ -n "${CUDA_PATH:-}" ]]; then
51-
export CUDACXX="$CUDA_PATH/bin/nvcc"
51+
export CUDACXX="$CUDA_PATH/bin/nvcc.exe"
5252
export CUDA_HOME="$CUDA_PATH"
5353
export CUDNN_HOME="$CUDA_PATH"
5454
fi
@@ -87,6 +87,7 @@ sedinplace 's/MLAS_CPUIDINFO::GetCPUIDInfo().HasArmNeon_I8MM()/false/g' onnxrunt
8787
patch -p1 < ../../../onnxruntime.patch
8888
#patch -p1 < ../../../onnxruntime-windows.patch # https://github.com/microsoft/onnxruntime/pull/7883
8989
sedinplace '/--Werror/d' cmake/CMakeLists.txt
90+
sedinplace '/-DCMAKE_CUDA_COMPILER=/d' tools/ci_build/build.py
9091
sedinplace "s/return 'ON'/return 'OFF'/g" tools/ci_build/build.py
9192
sedinplace "s/Visual Studio 1. 20../Ninja/g" tools/ci_build/build.py
9293
sedinplace 's/Darwin|iOS/iOS/g' cmake/onnxruntime_providers_cpu.cmake cmake/onnxruntime_providers.cmake

0 commit comments

Comments
 (0)