diff --git a/build.py b/build.py index ce176bafb9..8fab65ec8d 100755 --- a/build.py +++ b/build.py @@ -690,6 +690,9 @@ def onnxruntime_cmake_args(images, library_paths): ] else: if target_platform() == "windows": + + cargs.append("--compile-no-warning-as-error" + ) if "base" in images: cargs.append( cmake_backend_arg(