Skip to content
This repository was archived by the owner on Aug 17, 2026. It is now read-only.

Superbuild: static half only — drop the ADD_MODULE_LIB shared twin - #65

Merged
borisbat merged 1 commit into
masterfrom
bbatkin/superbuild-static-only
Jul 2, 2026
Merged

Superbuild: static half only — drop the ADD_MODULE_LIB shared twin#65
borisbat merged 1 commit into
masterfrom
bbatkin/superbuild-static-only

Conversation

@borisbat

@borisbat borisbat commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Found by the daslang fat-man gate: the ADD_MODULE_LIB shared twin is dead weight in a superbuild — nothing loads it (the DLL flavor comes from this module's own standalone build), and the imgui-family externals can't even link theirs without a dllexport matrix, so the sweep drops the twins uniformly. dasVulkan's twin happened to link (self-contained volk), so this is consistency + not building a target nobody consumes. Same fix as borisbat/dasImgui#219 / borisbat/dasImguiImplot#26 / borisbat/dasImguiNodeEditor#37.

Validated: full fat-man link + smoke on Windows (daslang_static, all five externals, rc=0); standalone flow untouched.

🤖 Generated with Claude Code

Found by the daslang fat-man gate on its first real (daslang_static) link:
the superbuild branch built both halves of ADD_MODULE_LIB, but the shared
twin of an imgui-family module cannot link on Windows (no IMGUI_API
dllexport matrix across the pair, no glfw import lib) — and nothing ever
loads it: in a superbuild the DLL flavor comes from this module's own
standalone build (daspkg). Static half only, matching what an embedded
host and daslang_static actually consume.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 10:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the superbuild (embedded) CMake integration for dasVulkan to only build/link the static module library, removing the previously-created shared “twin” target from the superbuild path. This aligns dasVulkan with the other imgui-family externals that don’t build usable shared twins in a superbuild context, while keeping the standalone shared-module build flow intact.

Changes:

  • Replaced ADD_MODULE_LIB(libDasModuleVulkan dasModuleVulkan …) with a static-only ADD_DAS_STATIC_MODULE_LIB(libDasModuleVulkan …) in the superbuild branch.
  • Removed superbuild-only configuration/link steps that referenced the shared twin target (dasModuleVulkan) while preserving static target setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@borisbat
borisbat merged commit 1fc9c89 into master Jul 2, 2026
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants