diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 8f044d3242b32..6e5cd7b57e403 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1472,7 +1472,7 @@ def generate_build_tree( ): if is_windows(): cflags = ["/guard:cf", "/DWIN32", "/D_WINDOWS"] - if number_of_parallel_jobs(args) > 1: + if args.parallel: cflags += ["/MP"] if not args.use_gdk: # Target Windows 10