authorgravatar for bratishkaerik@getgoogleoff.meEric Joldasov <bratishkaerik@getgoogleoff.me> 2024-05-14 23:00:58+05:00
committergravatar for bratishkaerik@landless-city.netEric Joldasov <bratishkaerik@landless-city.net> 2024-05-14 23:40:42+05:00
log1079b5fe63abeaf716baeddc731204927e322643
tree2abf857d94f182b5d41147681e0fbdffdda251ab
parent34ed49c62d55e43afcc7be91391243d273985818
signaturelock-open Commit is signed but in an unrecognized format.

CMake: remove `ZIG_USE_CCACHE` option

Not really useful after old C++ compiler removal, and zig build has own cache system. If someone still wants it, `CMAKE_C_COMPILER_LAUNCHER` and `CMAKE_CXX_COMPILER_LAUNCHER` exist. From CMake docs: > RULE_LAUNCH_COMPILE > Note: This property is intended for internal use by ctest(1). > Projects and developers should use the <LANG>_COMPILER_LAUNCHER > target properties or the associated CMAKE_<LANG>_COMPILER_LAUNCHER > variables instead. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>

1 files changed, 0 insertions(+), 10 deletions(-)

CMakeLists.txt-10
...@@ -98,16 +98,6 @@ else()...@@ -98,16 +98,6 @@ else()
98 set(ZIG_STATIC_CURSES off)98 set(ZIG_STATIC_CURSES off)
99endif()99endif()
100set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses")100set(ZIG_STATIC_CURSES ${ZIG_STATIC_CURSES} CACHE BOOL "Prefer linking against static curses")
101set(ZIG_USE_CCACHE off CACHE BOOL "Use ccache")
102
103if(ZIG_USE_CCACHE)
104 find_program(CCACHE_PROGRAM ccache)
105 if(CCACHE_PROGRAM)
106 set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
107 else()
108 message(SEND_ERROR "ccache requested but not found")
109 endif()
110endif()
111101
112if (ZIG_SHARED_LLVM AND ZIG_STATIC_LLVM)102if (ZIG_SHARED_LLVM AND ZIG_STATIC_LLVM)
113 message(SEND_ERROR "-DZIG_SHARED_LLVM and -DZIG_STATIC_LLVM cannot both be enabled simultaneously")103 message(SEND_ERROR "-DZIG_SHARED_LLVM and -DZIG_STATIC_LLVM cannot both be enabled simultaneously")