From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53F99C433ED for ; Wed, 12 May 2021 11:05:15 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9A0461075 for ; Wed, 12 May 2021 11:05:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9A0461075 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgmfx-0001x5-8D for qemu-devel@archiver.kernel.org; Wed, 12 May 2021 07:05:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgmem-0001I2-T6 for qemu-devel@nongnu.org; Wed, 12 May 2021 07:04:00 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:37416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgmel-0003oG-6A for qemu-devel@nongnu.org; Wed, 12 May 2021 07:04:00 -0400 Received: by mail-ed1-x529.google.com with SMTP id f1so4316273edt.4 for ; Wed, 12 May 2021 04:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h9I2zVvj2ZUli44kwo48oTtEn/c62YhcW49XVDqHrlU=; b=mmGx8JgHuBkjvKwTp+BZcMyYcXfCQnKJn6UDx2eEq6VDyVcfS6b5Lq94FcDgkJLsHk d3QUw4GFqwGGMzRVzRSShmNY5gBqDHiZA2XRS8N5UYxsQZ/puZnaQnAGT1t+C+FAadAI 0JcIW3e8AOZJ43QJP7/sKrgNuxiC4i4ylN7XTV6e/+d+6owgQA8jrp3fVqvDKqEXKG9o vdouENIDG3ZKSUQXA11MwSJlBQlgSpH7mhwAdnJXYjsfpjBs+SAMnO2prPByfMk21jzn haM73lyrLNCLPGWhmOnza9P5bDLyotXFZp1MHjgBb6sfKo13fZGN/4ImepdTUbkuJkXl wk8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h9I2zVvj2ZUli44kwo48oTtEn/c62YhcW49XVDqHrlU=; b=rU/jmRhpnPXLg0RVaKGMMQE5S587+6JhT7mPvRtAFn5nKYSAHhOwKztsNdcE4cZU5C IZJQg6Onfn9SojI64NCXI9irYOCMjQE3j9hIW6i/TXEK23rVG1WjmfzsT8grEQjb+iEB qF5zeKb6iORlQYnUjDFrjArOqo8e9jGBwjOnSDzSb0DUQ4O/Tujec7zXfZb8MyMdNvbp eBf3kzwJeTuMStaVRE7mMFM4dI7TEbwD9whdib5GVU92JFKIwA+wokPgr3p0KIM6WZl2 9b7kH3ES8BZbOt/JO4XNto9RirOjYDZiQlZRqbWTzlkd4dnECGA3eL6mYJRcn10skkpP 9UmA== X-Gm-Message-State: AOAM5332ureQZxseUP11/PnhDpvBr5FkOzyfU/ZeWJ+uuqmxOqlcctsd gj39qaIhF0HntHHjcufCs6sgP3l4gHZ38ojf45SMSA== X-Google-Smtp-Source: ABdhPJwQNX2VNcAygLEJCMSG1eFcqnWq8pJ40ZBHoAbxHz55WmLD8JX/sV6k305+ODxkXTu28/T2E6eJ6tbJAcV2u+U= X-Received: by 2002:a05:6402:3548:: with SMTP id f8mr42028853edd.251.1620817437668; Wed, 12 May 2021 04:03:57 -0700 (PDT) MIME-Version: 1.0 References: <20210512100906.621504-1-pbonzini@redhat.com> In-Reply-To: <20210512100906.621504-1-pbonzini@redhat.com> From: Peter Maydell Date: Wed, 12 May 2021 12:02:44 +0100 Message-ID: Subject: Re: [PATCH] add Visual Studio Code configuration To: Paolo Bonzini Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=peter.maydell@linaro.org; helo=mail-ed1-x529.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emanuele Giuseppe Esposito , QEMU Developers Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Wed, 12 May 2021 at 11:10, Paolo Bonzini wrote: > > Add configurations to build files with Visual Studio Code and > to retrieve the search path for headers from the compile_commands.json > file. > > Using this configuration requires installing the Meson extension and > using a build subdirectory that matches the one configured in the > Meson extension itself. > > Signed-off-by: Paolo Bonzini > diff --git a/scripts/rebuild.py b/scripts/rebuild.py > new file mode 100755 > index 0000000000..e35e08f42d > --- /dev/null > +++ b/scripts/rebuild.py > @@ -0,0 +1,22 @@ > +#! /usr/bin/env python3 > +# > +# Author: Paolo Bonzini > +# > +# This program compiles the input files using commands from the > +# compile_commands.json file. (Unlike Make/ninja, the _source_ > +# file is passed to the program rather than the targe). It is > +# mostly intended to be called from editors. This seems weird. I don't think we should try to support multiple ways of building QEMU -- editors should just run make the same way everybody else does... -- PMM