Skip to content

cmake : remove precompiled headers - #28892

Merged
danbev merged 1 commit into
ggml-org:masterfrom
danbev:revert-pch
Sep 14, 2026
Merged

danbev merged 1 commit into
ggml-org:masterfrom
danbev:revert-pch

Conversation

@danbev

@danbev danbev commented Sep 14, 2026

Copy link
Copy Markdown
Member

Overview

This commit removes the precompiled headers that I added in Commit 3bcfeb7 ("cmake : add PCH and unity build to improve build times (#28091)").

Additional information

The motivation for this is that this looked good when developing this but has caused multiple issues that I had taken into consideration and we have decided to remove it and only keep the unity builds from the above commit.

Refs: #28882 (comment)

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: Yes. Used to help remove the PCH header code from the cmake files.

This commit removes the precompiled headers that I added in Commit
3bcfeb7  ("cmake : add PCH and unity build to improve build times
(ggml-org#28091)").

The motivation for this is that this looked good when developing this
but has caused multiple issues that I had taken into consideration and
we have decided to remove it and only keep the unity builds from the
above commit.

Refs: ggml-org#28882 (comment)
@github-actions github-actions Bot added testing Everything test related server mtmd Related to multimodal functionality (video/image/audio) labels Sep 14, 2026
@@ -41,10 +33,6 @@ target_include_directories(${TARGET} PRIVATE ../mtmd)
target_include_directories(${TARGET} PRIVATE ${CMAKE_SOURCE_DIR})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The usage of CMAKE_SOURCE_DIR is still a problem - let's fix this in a follow-up PR similar to #28771 . I think what we really want is to use PROJECT_SOURCE_DIR in such situations.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll rebase #28771 after this has been merged and then update it to use PROJECT_SOURCE_DIR.

@danbev
danbev marked this pull request as ready for review September 14, 2026 11:31
@danbev
danbev requested review from a team as code owners September 14, 2026 11:31
@danbev
danbev merged commit f3a184b into ggml-org:master Sep 14, 2026
22 of 26 checks passed
@danbev
danbev deleted the revert-pch branch September 14, 2026 14:07
quimmedes pushed a commit to quimmedes/cafe-llama.cpp that referenced this pull request Sep 16, 2026
This commit removes the precompiled headers that I added in Commit
3bcfeb7  ("cmake : add PCH and unity build to improve build times
(ggml-org#28091)").

The motivation for this is that this looked good when developing this
but has caused multiple issues that I had taken into consideration and
we have decided to remove it and only keep the unity builds from the
above commit.

Refs: ggml-org#28882 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mtmd Related to multimodal functionality (video/image/audio) server testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants