Skip to content

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

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#37
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 on its first real (daslang_static) link: the shared twin of an imgui-dependent module can't link on Windows (needs the dllexport matrix against dasImgui), and nothing ever loads it — in a superbuild the DLL flavor comes from this module's own standalone build. Static half only, matching what an embedded host and daslang_static consume. Same fix as borisbat/dasImgui#219 / borisbat/dasImguiImplot#26 / borisbat/dasVulkan.

Validated: full fat-man link + smoke on Windows (daslang_static, all five externals, rc=0); standalone flow untouched. (The macOS integration lane remains pre-existing-red per #36.)

🤖 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 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 adjusts the daslang superbuild integration for dasImguiNodeEditor to build only the static module library, removing the redundant shared “twin” target that fails to link on Windows and is not consumed by embedded/static hosts.

Changes:

  • Replace the EMSCRIPTEN/non-EMSCRIPTEN split (ADD_DAS_STATIC_MODULE_LIB vs ADD_MODULE_LIB) with a single unconditional static module build in the superbuild path.
  • Remove the superbuild-only linking of the (now-removed) shared target to dasModuleImgui.

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

@borisbat
borisbat merged commit 8025009 into master Jul 2, 2026
5 of 6 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.

2 participants