Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Krita Krita
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Bugzilla
    • Bugzilla
  • Merge requests 72
    • Merge requests 72
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • GraphicsGraphics
  • KritaKrita
  • Merge requests
  • !1471

Add an options to build Krita with precompiled headers support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Dmitry Kazakov requested to merge dkazakov/krita:kazakov/pch-v2 into master Jun 10, 2022
  • Overview 3
  • Commits 3
  • Pipelines 4
  • Changes 226

Now there is a CMake option KRITA_ENABLE_PCH (enabled by default) that makes build process use precompiled headers in a per-library basis. It means that every library we build in Krita (we should use kis_add_library instead of normal add_library for that) will have its own local PCH file. The same applies for all the unittests.

The choice of a PCH header is done using heuristics based on the target's dependencies.

The patch makes compilation process about 20% faster here, when building with unittests, and about 10% faster, when building without unittests.

Edited Jun 13, 2022 by Dmitry Kazakov
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: kazakov/pch-v2