Skip to content

Commit 17c897e

Browse files
committed
Fix builds for ONNX Runtime on Windows
1 parent 1b963b2 commit 17c897e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/cppbuild.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ git reset --hard
3737
git checkout v$ONNXRUNTIME
3838
git submodule update --init --recursive
3939
git submodule foreach --recursive 'git reset --hard'
40-
git checkout v1.15.1 onnxruntime/core/platform/windows/stacktrace.cc # revert https://github.com/microsoft/onnxruntime/pull/17173
4140

4241
case $PLATFORM in
4342
linux-arm64)
@@ -48,7 +47,7 @@ case $PLATFORM in
4847
;;
4948
windows-*)
5049
if [[ -n "${CUDA_PATH:-}" ]]; then
51-
export CUDACXX="$CUDA_PATH/bin/nvcc"
50+
export CUDACXX="$CUDA_PATH/bin/nvcc.exe"
5251
export CUDA_HOME="$CUDA_PATH"
5352
export CUDNN_HOME="$CUDA_PATH"
5453
fi
@@ -87,6 +86,7 @@ sedinplace 's/MLAS_CPUIDINFO::GetCPUIDInfo().HasArmNeon_I8MM()/false/g' onnxrunt
8786
patch -p1 < ../../../onnxruntime.patch
8887
#patch -p1 < ../../../onnxruntime-windows.patch # https://github.com/microsoft/onnxruntime/pull/7883
8988
sedinplace '/--Werror/d' cmake/CMakeLists.txt
89+
sedinplace '/-DCMAKE_CUDA_COMPILER=/d' tools/ci_build/build.py
9090
sedinplace "s/return 'ON'/return 'OFF'/g" tools/ci_build/build.py
9191
sedinplace "s/Visual Studio 1. 20../Ninja/g" tools/ci_build/build.py
9292
sedinplace 's/Darwin|iOS/iOS/g' cmake/onnxruntime_providers_cpu.cmake cmake/onnxruntime_providers.cmake

0 commit comments

Comments
 (0)