-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
478 lines (404 loc) · 18 KB
/
CMakeLists.txt
File metadata and controls
478 lines (404 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
# Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
cmake_minimum_required(VERSION 3.15.0)
if (WIN32)
# Enable usage of CMAKE_MSVC_RUNTIME_LIBRARY variable.
cmake_policy(SET CMP0091 NEW)
# Set up vcpkg toolchain for Windows builds. The toolchain file must be set
# before the project() call.
get_filename_component(_toolchain ./3rdparty/vcpkg/scripts/buildsystems/vcpkg.cmake ABSOLUTE)
set(CMAKE_TOOLCHAIN_FILE ${_toolchain} CACHE STRING "Vcpkg toolchain file")
if (NOT DEFINED VCPKG_TARGET_TRIPLET)
set(VCPKG_TARGET_TRIPLET "x64-windows-static" CACHE STRING "Vcpkg target triplet")
endif ()
if (NOT DEFINED VCPKG_HOST_TRIPLET)
set(VCPKG_HOST_TRIPLET "x64-windows-static" CACHE STRING "Vcpkg host triplet")
endif ()
if (NOT DEFINED VCPKG_OVERLAY_TRIPLETS)
set(VCPKG_OVERLAY_TRIPLETS "${CMAKE_SOURCE_DIR}/vcpkg-triplets"
CACHE STRING "Vcpkg overlay triplets")
endif ()
endif ()
if (APPLE AND CMAKE_VERSION VERSION_GREATER_EQUAL 4.0.0 AND NOT CMAKE_OSX_SYSROOT)
# We are going to need having CMAKE_OSX_SYSROOT point to the macOS SDK
# path. However, starting with CMake 4.0, CMAKE_OSX_SYSROOT is not set
# automatically anymore. So we follow the guidance from the CMake 4.0
# release notes here:
#
# Builds targeting macOS no longer choose any SDK or pass an "-isysroot"
# flag to the compiler by default. Instead, compilers are expected to
# choose a default macOS SDK on their own. In order to use a compiler
# that does not do this, users must now specify
# "-DCMAKE_OSX_SYSROOT=macosx" when configuring their build.
#
# The described situation ("let the compiler choose") doesn't quite match
# ours, but this does lead to CMAKE_OSX_SYSROOT pointing to the macOS SDK
# path when we need it.
set(CMAKE_OSX_SYSROOT "macosx")
endif ()
project(spicy LANGUAGES C CXX)
if (MSVC)
# When building Spicy as part of Zeek, libunistd may already exist.
# Reuse that target to avoid duplicate target-name collisions.
if (NOT TARGET libunistd)
add_subdirectory(3rdparty/libunistd)
include_directories(BEFORE ${CMAKE_SOURCE_DIR}/3rdparty/libunistd/unistd)
list(APPEND CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/3rdparty/libunistd/unistd)
else ()
get_target_property(_libunistd_include_dirs libunistd INTERFACE_INCLUDE_DIRECTORIES)
if (_libunistd_include_dirs)
include_directories(BEFORE ${_libunistd_include_dirs})
list(APPEND CMAKE_REQUIRED_INCLUDES ${_libunistd_include_dirs})
endif ()
unset(_libunistd_include_dirs)
endif ()
# Force-include unistd.h in C++ compilation units so that libunistd can set
# up WinSock2.h / WIN32_LEAN_AND_MEAN before anything else pulls in Windows.h.
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/FIunistd.h>)
# Use conforming preprocessor so that raw string literals inside macros are
# tokenized correctly (the traditional MSVC preprocessor misparses them).
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/Zc:preprocessor>)
# Report the correct C++ standard in __cplusplus (MSVC defaults to 199711L).
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/Zc:__cplusplus>)
# Use UTF-8 for both source and execution character sets.
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/utf-8>)
endif ()
set(flex_minimum_version "2.5.37")
set(bison_minimum_version "3.0")
set(macos_minimum_version "19.0.0") # macOS 10.15.0 (Catalina)
## Initialize defaults & global options
if (NOT CMAKE_BUILD_TYPE)
# CMake doesn't set build type by default.
set(CMAKE_BUILD_TYPE "Debug")
endif ()
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(Util)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# CMake uses -O2 by default with RelWithDebInfo.
string(REPLACE "-O2" "-O3" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
include(CheckCompiler)
include(GNUInstallDirs)
if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
endif ()
if (NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
endif ()
if (NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
endif ()
if (BINARY_PACKAGING_MODE)
# Binary packaging mode uses a static link which causes issues with
# unresolved symbols for a number of tests.
if (USE_SANITIZERS)
message(FATAL_ERROR "Sanitizers are unsupported in binary packaging mode")
endif ()
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_SKIP_RPATH ON)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH OFF)
set(CMAKE_MACOSX_RPATH OFF)
else ()
make_install_rpath(rpath ${CMAKE_INSTALL_FULL_BINDIR} ${CMAKE_INSTALL_FULL_LIBDIR})
set(CMAKE_INSTALL_RPATH "${rpath}")
endif ()
if (USE_CCACHE)
find_program(CCACHE_PROGRAM ccache)
if (CCACHE_PROGRAM)
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_PROGRAM})
else ()
set(USE_CCACHE "no (error: could not find ccache)")
endif ()
else ()
set(USE_CCACHE "no")
endif ()
if (USE_SANITIZERS)
# Recommended flags per https://github.com/google/sanitizers/wiki/AddressSanitizer
set(sanitizer_cxx_flags
"-fsanitize=${USE_SANITIZERS} -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1")
set(sanitizer_ld_flags "-fsanitize=${USE_SANITIZERS}")
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(sanitizer_cxx_flags "${sanitizer_cxx_flags} -shared-libasan")
set(sanitizer_ld_flags "${sanitizer_ld_flags} -frtlib-add-rpath -shared-libasan")
endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${sanitizer_cxx_flags}")
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} ${sanitizer_cxx_flags}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${sanitizer_ld_flags}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${sanitizer_ld_flags}")
set(EXTRA_LD_FLAGS "${EXTRA_LD_FLAGS} ${sanitizer_ld_flags}")
set(HILTI_DEV_PRECOMPILE_HEADERS "no")
endif ()
if (USE_WERROR)
set(werror_flags "-Werror")
if (CMAKE_COMPILER_IS_GNUCXX)
# GCC's `-Wstringop-overflow` has a hardcoded limit for the maximum size
# of a strings it can analyze which we exceed in e.g., in some
# benchmarks in some libstd++ use of `__builtin_memcpy`. Disable the
# warning since it appears noise.
string(APPEND werror_flags " -Wno-stringop-overflow")
# With versions >=13.0 GCC gained `-Warray-bounds` which reports false
# positives, see e.g., https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111273.
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
string(APPEND werror_flags " -Wno-array-bounds")
endif ()
# GCC regularly diagnoses out of bounds access in its own use of
# `__builtin_memcpy` in e.g., its `bits/char_traits.h`.
string(APPEND werror_flags " -Wno-restrict")
# When optimizing GCC often reports false positives around maybe
# uninitialized values, e.g., in its string implementation. These are
# extremely tedious to silence, so just disable the warning altogether.
string(APPEND werror_flags " -Wno-maybe-uninitialized")
endif ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${werror_flags}")
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} ${werror_flags}")
endif ()
## Load modules
# If the user specified dedicated prefixes for Flex or Bison, look in these
# prefixes first. As the upstream modules do not support specifying these we
# inject them here by hand.
#
# The implementation relies on the fact that the `find_*` commands do not search
# again should the output variable already be set successfully. We first search
# for the artifacts with `NO_DEFAULT_PATH` and then later trigger the upstream
# `find_package` logic. With that any user-specified prefix takes precedence
# over what could be found in the default search locations.
if (FLEX_ROOT)
find_program(
FLEX_EXECUTABLE
NAMES flex win_flex
PATHS ${FLEX_ROOT}
PATH_SUFFIXES bin tools
NO_DEFAULT_PATH)
find_library(
FL_LIBRARY
NAMES fl
PATHS ${FLEX_ROOT}
PATH_SUFFIXES lib
NO_DEFAULT_PATH)
find_path(
FLEX_INCLUDE_DIR FlexLexer.h
PATHS ${FLEX_ROOT}
PATH_SUFFIXES include tools
NO_DEFAULT_PATH)
set(_flex_include_hints ${FLEX_ROOT})
endif ()
if (BISON_ROOT)
find_program(
BISON_EXECUTABLE
NAMES bison win_bison
PATHS ${BISON_ROOT}
PATH_SUFFIXES bin tools
NO_DEFAULT_PATH)
endif ()
find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)
find_package(ZLIB REQUIRED)
find_package(Backtrace)
# On Windows, FlexLexer.h may not be in a standard include path. Derive
# search hints from the found flex executable so that common package manager
# layouts (e.g. chocolatey's winflexbison3) are discovered automatically.
if (WIN32 AND FLEX_FOUND)
get_filename_component(_flex_exe_dir "${FLEX_EXECUTABLE}" DIRECTORY)
get_filename_component(_flex_parent "${_flex_exe_dir}" DIRECTORY)
list(APPEND _flex_include_hints "${_flex_exe_dir}" "${_flex_parent}/lib/winflexbison3/tools"
"${_flex_parent}/lib/winflexbison3")
find_path(FLEX_INCLUDE_DIR FlexLexer.h HINTS ${_flex_include_hints} PATH_SUFFIXES include tools)
endif ()
find_path(
FLEX_INCLUDE_DIRS
NAMES FlexLexer.h
HINTS ${_flex_include_hints}
PATH_SUFFIXES include tools REQUIRED)
if (Backtrace_FOUND AND NOT APPLE)
# On systems other than MacOS there's a libexecinfo that's not working for us:
# it seems to break when compiling without frame pointers so we disable it.
if ("${Backtrace_LIBRARY}" MATCHES "libexecinfo")
message(STATUS "Disabling backtrace because we found libexecinfo")
set(Backtrace_FOUND "no")
endif ()
endif ()
# Prettify output
if (Backtrace_FOUND)
set(HILTI_HAVE_BACKTRACE "yes")
else ()
set(HILTI_HAVE_BACKTRACE "no")
endif ()
if (APPLE)
set(MACOS_FOUND "yes")
require_version("macOS" MACOS_FOUND ${CMAKE_SYSTEM_VERSION} "${macos_minimum_version}" true)
endif ()
require_version("Flex" FLEX_FOUND FLEX_VERSION "${flex_minimum_version}" true)
require_version("Bison" BISON_FOUND BISON_VERSION "${bison_minimum_version}" true)
find_package(GoldLinker)
find_package(Threads)
option(BUILD_TOOLCHAIN "Build the Spicy compiler toolchain" ON)
option(HILTI_SKIP_EXPENSIVE_DEBUG_CHECKS
"In debug builds, skip particularly expensive consistency checks inside the compiler" OFF)
if (BUILD_TOOLCHAIN)
set(HAVE_TOOLCHAIN yes)
else ()
set(HAVE_TOOLCHAIN no)
endif ()
set(HILTI_COMPILER_LAUNCHER "" CACHE STRING "C++ compiler launcher to use by default during JIT")
# Set up testing infrastructure.
enable_testing()
# Get project version.
file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/VERSION SPICY_VERSION LIMIT_COUNT 1)
set(CMAKE_PROJECT_VERSION ${SPICY_VERSION})
# Get Spicy commit. If we cannot get the current commit (e.g., no .git
# directory present for release tarballs), this will leave SPICY_COMMIT unset.
execute_process(
COMMAND ${CMAKE_COMMAND} -E env GIT_DIR=${CMAKE_CURRENT_SOURCE_DIR}/.git git rev-parse --short
HEAD
OUTPUT_VARIABLE SPICY_COMMIT
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE ignored)
string(REGEX MATCH "([0-9]*)\.([0-9]*)\.([0-9]*).*" _ ${CMAKE_PROJECT_VERSION})
math(EXPR SPICY_VERSION_NUMBER
"${CMAKE_MATCH_1} * 10000 + ${CMAKE_MATCH_2} * 100 + ${CMAKE_MATCH_3}")
if (NOT "${SPICY_COMMIT}" STREQUAL "")
set(SPICY_VERSION_LONG "${SPICY_VERSION} (${SPICY_COMMIT})")
else ()
set(SPICY_VERSION_LONG ${SPICY_VERSION})
endif ()
# Add subdirectories.
add_subdirectory(hilti)
add_subdirectory(spicy)
add_subdirectory(scripts)
add_subdirectory(3rdparty)
## Print build summary
string(TOUPPER ${CMAKE_BUILD_TYPE} BuildType)
string(STRIP "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BuildType}}" cflags)
string(STRIP "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${BuildType}}" cxxflags)
# Precompiled headers.
option("HILTI_DEV_PRECOMPILE_HEADERS" "Precompile headers for developer tests" ON)
if (${HILTI_DEV_PRECOMPILE_HEADERS}
AND TARGET hilti-config
AND TARGET spicy-config
AND NOT MSVC)
# Precompile libhilti for use in JIT during development.
#
# We only use precompiled headers during JIT, but e.g., not to during
# compilation of Spicy itself. This gives us the benefits of JIT without
# e.g., making it harder for ccache to work during development. It also
# allows us to punt on some trickier cleanups of header files.
add_custom_command(
OUTPUT ${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libhilti.h
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libhilti.h.gch
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libhilti_debug.h
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libhilti_debug.h.gch
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libspicy.h
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libspicy.h.gch
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libspicy_debug.h
${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libspicy_debug.h.gch
COMMENT "Generating precompiled headers"
COMMAND ${CMAKE_COMMAND} -E env SPICY_CACHE=${PROJECT_BINARY_DIR}/cache/spicy
${PROJECT_SOURCE_DIR}/scripts/precompile-headers.sh --bindir ${CMAKE_BINARY_DIR}/bin
DEPENDS ${PROJECT_SOURCE_DIR}/scripts/precompile-headers.sh
${CMAKE_CURRENT_SOURCE_DIR}/hilti/runtime/include/libhilti.h
${CMAKE_CURRENT_SOURCE_DIR}/spicy/runtime/include/libspicy.h
hilti-config
spicy-config)
add_custom_target(precompiled-headers ALL COMMENT "Generating precompiled headers"
DEPENDS ${PROJECT_BINARY_DIR}/cache/spicy/precompiled_libhilti.h)
endif ()
# Global test target
add_custom_target(
check
COMMAND ctest --output-on-failure -C $<CONFIG>
DEPENDS tests
COMMENT "Running unit tests")
add_custom_target(tests COMMENT "Building test targets")
add_dependencies(tests hilti-tests spicy-tests)
# By default Test targets are built since we want them to be build as part
# of the default dev experience. Projects using Spicy can still disable them
# when bundling Spicy by setting the the option.
option(SPICY_ENABLE_TESTS "Build Spicy unit tests and benchmarks" ON)
if (SPICY_ENABLE_TESTS)
add_custom_target(tests-build ALL DEPENDS tests COMMENT "Forcing test build")
endif ()
# Packaging.
# Check tags the HEAD commit corresponds to. If we cannot get the current
# commit (e.g., no .git directory present for release tarballs), this will
# leave SPICY_TAGS unset which is fine for users working from tarballs.
execute_process(COMMAND git tag --points-at HEAD v* OUTPUT_VARIABLE SPICY_TAGS
ERROR_VARIABLE ignored)
if ("${SPICY_TAGS}" STREQUAL "")
# If the HEAD commit does not correspond to a tag it is not a release. Hide
# the version number in packaging artifacts so we can e.g., provide stable
# links to the latest version.
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-dev")
else ()
# If the HEAD commit corresponds to a tag it is a release and we expect a
# version number in packaging artifacts.
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CMAKE_PROJECT_VERSION}")
endif ()
set(CPACK_PACKAGE_CONTACT "info@zeek.org")
set(CPACK_STRIP_FILES ON)
set(CPACK_SOURCE_STRIP_FILES ON)
set(CPACK_BINARY_DEB OFF)
set(CPACK_BINARY_RPM OFF)
set(CPACK_BINARY_STGZ OFF)
set(CPACK_BINARY_TZ OFF)
set(CPACK_BINARY_TGZ ON)
find_program(RPMBUILD rpmbuild)
if (RPMBUILD)
set(CPACK_BINARY_RPM ON)
endif ()
find_program(DPKG_DEB dpkg-deb)
if (DPKG_DEB)
set(CPACK_BINARY_DEB ON)
endif ()
# While this should be sufficient to set a prefix for installation, we still
# bake in other absolute paths by using `CMAKE_INSTALL_FULL_*`-style variables,
# e.g., when baking details about the installation into binaries.
set(CPACK_SET_DESTDIR ON)
set(CPACK_INSTALL_PREFIX "/opt/spicy")
set(CPACK_PACKAGE_RELOCATABLE OFF)
include(CPack)
# Emit configuration summary.
set(SPICY_HOST_SYSTEM "${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_VERSION} (${CMAKE_SYSTEM_PROCESSOR})")
set(SPICY_C_COMPILER "${CMAKE_C_COMPILER} (${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION})")
set(SPICY_CXX_COMPILER
"${CMAKE_CXX_COMPILER} (${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION})")
set(SPICY_CLANG_TIDY "no")
if (CMAKE_CXX_CLANG_TIDY)
set(SPICY_CLANG_TIDY "yes (${CMAKE_CXX_CLANG_TIDY})")
endif ()
set(SPICY_SANITIZERS "no")
if (USE_SANITIZERS)
set(SPICY_SANITIZERS "yes (${USE_SANITIZERS})")
endif ()
message(
"\n====================| Spicy Build Summary |===================="
"\n"
"\nVersion: ${SPICY_VERSION_LONG}"
"\n"
"\nBuild type: ${CMAKE_BUILD_TYPE}"
"\nBuild directory: ${PROJECT_BINARY_DIR}"
"\nInstall prefix: ${CMAKE_INSTALL_PREFIX}"
"\nBuild shared libs: ${BUILD_SHARED_LIBS}"
"\n"
"\nHost system: ${SPICY_HOST_SYSTEM}"
"\nC compiler: ${SPICY_C_COMPILER}"
"\nC++ compiler: ${SPICY_CXX_COMPILER}"
"\n"
"\nBuilding toolchain: ${HAVE_TOOLCHAIN}"
"\n"
"\nUse ccache: ${USE_CCACHE}"
"\nUse clang-tidy: ${SPICY_CLANG_TIDY}"
"\nUse gold linker: ${GOLD_FOUND}"
"\nUse sanitizers: ${SPICY_SANITIZERS}"
"\nUse backtrace: ${HILTI_HAVE_BACKTRACE}"
"\n"
"\nWarnings are errors: ${USE_WERROR}"
"\nPrecompile headers: ${HILTI_DEV_PRECOMPILE_HEADERS}"
"\n"
"\nBison version: ${BISON_VERSION}"
"\nCMake version: ${CMAKE_VERSION}"
"\nFlex version: ${FLEX_VERSION}"
"\nzlib version: ${ZLIB_VERSION_STRING}"
"\n"
"\n================================================================\n")