Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,104
    • Issues 4,104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !4647

Apple: merge per-arch sysroot parameters if all are the same

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Gregor Jasny requested to merge gjasny/cmake:merge-same-sysroot into master Apr 21, 2020
  • Overview 11
  • Commits 1
  • Pipelines 2
  • Changes 2

Since !4125 (merged) CMake supports "fat" builds with different sysroots. Those are passed to the compiler with the -Xarch_<xyz> parameter.

Unfortunately this breaks the Compiler Cache (ccache) because it does not support those compiler flags: https://github.com/ccache/ccache/blob/v3.7.9/src/ccache.c#L2700-L2705

This change restores the caching ability for certain "fat" build configurations (e.g. arm64 and armv7) where the sysroot is the same for all selected architectures and thus a plain -isysroot parameter could be used.

Backport: release
Topic-rename: apple-merge-same-sysroot

Edited Apr 21, 2020 by Brad King
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: merge-same-sysroot