Skip to content

cmake : remove STATIC from impl libraries, enable LLAMA_BUILD_APP by default#23462

Merged
ggerganov merged 3 commits into
masterfrom
gg/impl-shared-libs
May 21, 2026
Merged

cmake : remove STATIC from impl libraries, enable LLAMA_BUILD_APP by default#23462
ggerganov merged 3 commits into
masterfrom
gg/impl-shared-libs

Conversation

@ggerganov
Copy link
Copy Markdown
Member

Overview

  • Remove explicit STATIC from all -impl libraries (server, cli, completion, bench, batched-bench, fit-params, quantize, perplexity) so BUILD_SHARED_LIBS controls shared vs static linkage
  • Add WINDOWS_EXPORT_ALL_SYMBOLS ON for proper DLL export on Windows when built as shared libraries
  • Enable LLAMA_BUILD_APP by default

Additional information

Addresses comment and comment from PR #23296.

Requirements

@github-actions github-actions Bot added build Compilation issues examples server labels May 21, 2026
ggerganov added 3 commits May 21, 2026 19:02
…ntrol

Remove explicit STATIC from all -impl libraries (server, cli, completion, bench,
batched-bench, fit-params, quantize, perplexity) so BUILD_SHARED_LIBS controls
shared vs static linkage.

Add WINDOWS_EXPORT_ALL_SYMBOLS ON for proper DLL export on Windows.

Assisted-by: llama.cpp:local pi
Assisted-by: llama.cpp:local pi
@ggerganov ggerganov force-pushed the gg/impl-shared-libs branch from 07bb337 to 7bd176e Compare May 21, 2026 16:02
@ggerganov ggerganov marked this pull request as ready for review May 21, 2026 16:03
@ggerganov ggerganov requested review from a team and ngxson as code owners May 21, 2026 16:03
@ggerganov ggerganov requested a review from angt May 21, 2026 16:03
@ggerganov ggerganov merged commit bb28c1f into master May 21, 2026
6 of 40 checks passed
@ggerganov ggerganov deleted the gg/impl-shared-libs branch May 21, 2026 18:14
@CISC
Copy link
Copy Markdown
Member

CISC commented May 21, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Compilation issues examples server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants