mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
Meta: Separate ccache setup into its own component
This commit is contained in:
parent
0bd9a94bea
commit
10d40af167
Notes:
sideshowbarker
2024-07-17 04:10:16 +09:00
Author: https://github.com/Jan200101 Commit: https://github.com/SerenityOS/serenity/commit/10d40af167 Pull-request: https://github.com/SerenityOS/serenity/pull/16346 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/timschumi
3 changed files with 11 additions and 10 deletions
|
@ -41,11 +41,7 @@ if(NOT COMMAND serenity_option)
|
|||
endif()
|
||||
include(serenity_options)
|
||||
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
endif()
|
||||
include(setup_ccache)
|
||||
|
||||
if (NOT HACKSTUDIO_BUILD)
|
||||
|
||||
|
|
9
Meta/CMake/setup_ccache.cmake
Normal file
9
Meta/CMake/setup_ccache.cmake
Normal file
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# ccache setup
|
||||
#
|
||||
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
endif()
|
|
@ -49,11 +49,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries instead of static libraries" ON
|
|||
find_package(Threads REQUIRED)
|
||||
|
||||
if (ENABLE_LAGOM_CCACHE)
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_PROGRAM}" CACHE FILEPATH "Path to a compiler launcher program, e.g. ccache")
|
||||
endif()
|
||||
include(setup_ccache)
|
||||
endif()
|
||||
|
||||
if (ENABLE_FUZZERS_LIBFUZZER OR ENABLE_FUZZERS_OSSFUZZ)
|
||||
|
|
Loading…
Reference in a new issue