From 2360208f7dfd038b517c68b4488702eefe90bd41 Mon Sep 17 00:00:00 2001 From: Emil Lundmark Date: Fri, 28 Jun 2024 09:39:35 +0200 Subject: [PATCH] Generate compilation database by default This will generate a JSON compilation database for all build targets by default. This is useful for LSP servers and other tools for properly interacting with the build system. Previously, users have been able to this manually by appending a flag to gn gen. Bug: None Change-Id: I9cdf501b5c392314eae53010ef2d9928769809a8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/355941 Reviewed-by: Mirko Bonadei Commit-Queue: Emil Lundmark Cr-Commit-Position: refs/heads/main@{#42558} --- .gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gn b/.gn index 5de968946f..0d97f8a08d 100644 --- a/.gn +++ b/.gn @@ -41,6 +41,8 @@ no_check_targets = [ exec_script_whitelist = build_dotfile_settings.exec_script_whitelist + [ "//build_overrides/build.gni" ] +export_compile_commands = [ "*" ] + default_args = { # Webrtc does not support component builds because we are not using the # template "component" but we rely directly on "rtc_static_library" and