Skip to content

Fix builds with multisession support disabled - #20

Merged
reinauer merged 1 commit into
mainfrom
fix-multisession-disabled-build
Sep 8, 2026
Merged

Fix builds with multisession support disabled#20
reinauer merged 1 commit into
mainfrom
fix-multisession-disabled-build

Conversation

@reinauer

@reinauer reinauer commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Building with ODFS_FEATURE_MULTISESSION=0 fails under -Werror because mount_build_session_candidates() still declares toc while all of its uses are compiled out. Guard the declaration with the same feature flag.

Add a CI build of the host library with multisession disabled in a separate output directory to catch this configuration regression without reusing default-build objects.

Validation:

  • Reproduced the unused-variable error on the upstream source.
  • Fresh host library build with ODFS_FEATURE_MULTISESSION=0 passed.
  • Fresh OS3 handler build with FEATURE_MULTISESSION=0 passed.
  • All 112 default host unit tests passed.

Declare the session-candidate TOC only when multisession support is
enabled, matching the guard around its users. This fixes the unused
variable error when ODFS_FEATURE_MULTISESSION=0 is built with -Werror.

Compile the host library with multisession disabled in CI, using a
separate output directory so default-build objects cannot hide the
regression.
@reinauer
reinauer merged commit 3d16b01 into main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant