From 411f5af0b8c7b437c802b3ed09e2caf8d48c99ae Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 14 Nov 2023 12:07:36 -0500 Subject: [PATCH] Meta: Automatically generate a compilation database for clangd This is similar to how we set CMAKE_EXPORT_COMPILE_COMMANDS in the CMake build. This adds about 5-10ms to a clean `gn gen` on my machine. --- .gn | 1 + 1 file changed, 1 insertion(+) diff --git a/.gn b/.gn index 646516e27fa..f95919379c8 100644 --- a/.gn +++ b/.gn @@ -1,4 +1,5 @@ buildconfig = "//Meta/gn/build/BUILDCONFIG.gn" exec_script_whitelist = [] +export_compile_commands = [ ":*" ] script_executable = "python3" secondary_source = "//Meta/gn/secondary/"