Skip to content

Apply MSVC library paths to shared and module linkers too - #694

Merged
majcosta merged 1 commit into
1dot13:masterfrom
majcosta:clangcl_fix
Aug 21, 2026
Merged

Apply MSVC library paths to shared and module linkers too#694
majcosta merged 1 commit into
1dot13:masterfrom
majcosta:clangcl_fix

Conversation

@majcosta

Copy link
Copy Markdown
Collaborator

The /libpath flags for the MSVC, UCRT, and Windows SDK x86 libraries were only injected into CMAKE_EXE_LINKER_FLAGS_INIT, so linking a shared library or module produced unresolved externals. Hoist the paths into a local variable and feed it to the EXE, SHARED, and MODULE init flags.

Never bit because nothing in the tree builds a shared lib yet.

The /libpath flags for the MSVC, UCRT, and Windows SDK x86 libraries
were only injected into CMAKE_EXE_LINKER_FLAGS_INIT, so linking a shared
library or module produced unresolved externals. Hoist the paths into a
local variable and feed it to the EXE, SHARED, and MODULE init flags.

Never bit because nothing in the tree builds a shared lib yet.
@majcosta
majcosta merged commit 4546bc1 into 1dot13:master Aug 21, 2026
6 checks passed
@majcosta
majcosta deleted the clangcl_fix branch August 21, 2026 17:27
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