Skip to content

Use CMAKE_<LANG>_COMPILER_LAUNCHER #8433

Closed

Description

@pietern

Moving more parts of the build into CMake we should use

  • CMAKE_C_COMPILER_LAUNCHER (since CMake 3.4)
  • CMAKE_CXX_COMPILER_LAUNCHER (since CMake 3.4)
  • CMAKE_CUDA_COMPILER_LAUNCHER (since CMake 3.10)

To transparently use ccache in development. Latest ccache (version 3.4) includes working support for nvcc.

cc @orionr

Activity

  1. added
    module: build
    on Jun 13, 2018
  2. ezyang commented on Jun 13, 2018

    @ezyang
    Contributor

    If we do this we need to check that default cmake on our support platforms works.

  3. xkszltl commented on Jan 6, 2020

    @xkszltl
    Contributor

    Does adding CMAKE_CUDA_COMPILER_LAUNCHER actually help?
    Based on my experiment with cmake -DCMAKE_{C,CXX,CUDA}_COMPILER_LAUNCHER=ccache ..., I don't see any ccache /usr/local/cuda/bin/nvcc in log (but I can certainly find ccache .../gcc).

    BTW I'm using latest cmake.

  4. added
    triaged
    on Jan 9, 2020
  5. added a commit that references this issue on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: buildtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions