Skip to content

Remove Windows server build support - #8812

Merged
Vinya567 merged 3 commits into
mainfrom
vinyak/tri-648-remove-windows-support-from-server
Jun 2, 2026
Merged

Remove Windows server build support#8812
Vinya567 merged 3 commits into
mainfrom
vinyak/tri-648-remove-windows-support-from-server

Conversation

@Vinya567

@Vinya567 Vinya567 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

This removes the Windows-specific server build path and keeps the server build flow focused on the supported Unix-style targets.

The change updates build.py to reject Windows explicitly as a target platform, removes PowerShell script generation and Windows container build handling, and simplifies the generated build scripts to always use the bash path. It also removes Windows-specific CMake branches from the server build files, including MSVC compile options, Windows protobuf and OpenTelemetry path handling, Windows install renaming for tritonserver.exe, and NOT WIN32 guards around tracing, examples, Python frontend packaging, and tests.

Rationale

Windows is no longer a supported server build target, so keeping parallel Windows build branches makes the build scripts harder to maintain and creates paths that are no longer expected to work. Failing early in build.py makes the unsupported platform behavior explicit, while simplifying CMake keeps the remaining build configuration aligned with the supported Linux/RHEL/iGPU targets.

Validation

  • Ran python3 -m py_compile build.py to verify the Python build script still parses.
  • Ran git diff --check origin/main...HEAD to verify the committed changes do not introduce whitespace errors.
  • Searched the updated build entry points for remaining Windows build conditionals in build.py, CMakeLists.txt, src/CMakeLists.txt, and src/grpc/CMakeLists.txt.

Drop the Windows-specific server build paths so the build tooling and CMake configuration follow the supported Unix-style flow, and fail fast when Windows is requested as a target platform.

@whoisj whoisj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Had 1 question.

Comment thread build.py
Vinya567 added 2 commits June 2, 2026 10:23
The --container-memory CLI option was only consumed by the Windows
docker build code paths, which were removed in the previous commit.
The argument was left orphaned: accepted on the CLI but never read,
which silently misleads users into thinking they had set a memory
limit. Drop it now that no code path uses it.

Addresses review feedback on PR #8812.
Update the copyright header on the CMake files modified by this PR so
the add-license pre-commit hook passes in CI.

@whoisj whoisj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Vinya567
Vinya567 merged commit 6328853 into main Jun 2, 2026
3 checks passed
@Vinya567
Vinya567 deleted the vinyak/tri-648-remove-windows-support-from-server branch June 2, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants