summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-04-23 00:46:47 +0430
committerLinus Groh <mail@linusgroh.de>2021-04-22 22:23:14 +0200
commit18ddfc19c6328d9519d8909b295a8913a27ff75f (patch)
tree2fe4d63b3138009fcddd717a0b2d40e303f2c4c6 /CMakeLists.txt
parent38418fdfdfccb6b62812616fa86b217c1844dc5c (diff)
downloadserenity-18ddfc19c6328d9519d8909b295a8913a27ff75f.zip
Meta: Disable the use of PCH by default
While this has a rather significant impact for me, it appears to have very minimal build time improvements (or in some cases, regressions). Also appears to cause some issues when building on macOS. So disable it by default, but leave the option so people that get something out of it (seems to mostly be a case of "is reading the headers fast enough") can turn it on for their builds.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a442a012f5..d9e1907af0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@ option(ENABLE_ALL_THE_DEBUG_MACROS "Enable all debug macros to validate they sti
option(ENABLE_COMPILETIME_FORMAT_CHECK "Enable compiletime format string checks" ON)
option(ENABLE_PCI_IDS_DOWNLOAD "Enable download of the pci.ids database at build time" ON)
option(BUILD_LAGOM "Build parts of the system targeting the host OS for fuzzing/testing" OFF)
-option(PRECOMPILE_COMMON_HEADERS "Precompile some common headers to speedup compilation" ON)
+option(PRECOMPILE_COMMON_HEADERS "Precompile some common headers to speedup compilation" OFF)
add_custom_target(run
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh