Skip to content

build: Remove Windows from core build (TRI-725)#501

Merged
Vinya567 merged 1 commit into
mainfrom
vinyak/tri-725-remove-windows-from-core-bulid
Jun 3, 2026
Merged

build: Remove Windows from core build (TRI-725)#501
Vinya567 merged 1 commit into
mainfrom
vinyak/tri-725-remove-windows-from-core-bulid

Conversation

@Vinya567

@Vinya567 Vinya567 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes Windows-specific logic from Triton Core's build system as part of TRI-725, following the Windows build removal in server (TRI-723).

This change is limited to CMake/build files and removes obsolete Windows-only build paths (WIN32, NOT WIN32, and MSVC conditionals) while preserving existing Linux build behavior.

Changes

  • Removed MSVC-specific compile option blocks from:

    • core/CMakeLists.txt
    • core/src/CMakeLists.txt
  • Removed Windows-specific protobuf config selection and kept the Linux protobuf path.

  • Removed NOT WIN32 wrappers around:

    • Linux-only compile options for filesystem/api.cc
    • dl and numa linking
    • core/src/test subdirectory inclusion
    • Test target links for response_cache_test, memory_test, pinned_memory_manager_test, and metrics_api_test

Verification

  • No Windows-specific build references remain under core/ build files.

  • Changes are contained to:

    • core/CMakeLists.txt
    • core/src/CMakeLists.txt
    • core/src/test/CMakeLists.txt

Notes

This PR only removes Windows support from the build system. Source-level Windows code remains unchanged and will be handled separately if needed.

Strips Windows-specific branches from the core build system, mirroring
TRI-723 (#8812) which removed Windows from the server build.

Removed:
  - core/CMakeLists.txt: MSVC compile-options block for the
    triton-core-serverstub stub library, and the platform-varying
    `if (WIN32)` block setting `_FINDPACKAGE_PROTOBUF_CONFIG_DIR`.
  - core/src/CMakeLists.txt: MSVC compile-options block for
    triton-core, and three `if (NOT WIN32)` wrappers around
    `-Wno-missing-field-initializers` on filesystem/api.cc, the
    `dl`/`numa` link, and the unit-test subdirectory.
  - core/src/test/CMakeLists.txt: four `if (NOT WIN32)` wrappers
    around `dl`/`numa` linkage for response_cache_test, memory_test,
    pinned_memory_manager_test, and metrics_api_test.

Linux behavior is unchanged. Every removed branch was either a
never-fired Windows path (MSVC compile flags, `if (WIN32)`) or an
`if (NOT WIN32)` wrapper whose contents already executed on Linux.

Source-level Windows code in core (`#ifdef _WIN32` blocks in
implementation files, `__declspec(dllexport)` macros in public
headers, etc.) is out of scope for this ticket and remains in place.

@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 eaff04d into main Jun 3, 2026
1 check passed
@whoisj whoisj deleted the vinyak/tri-725-remove-windows-from-core-bulid branch June 3, 2026 18:47
@yinggeh

yinggeh commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Remove linear details (internal use only). And use template for description here https://github.com/triton-inference-server/server/blob/main/.github/PULL_REQUEST_TEMPLATE/pull_request_template_internal_contrib.md.

@yinggeh yinggeh self-requested a review June 3, 2026 19:05
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.

3 participants