Re: [PATCH] add Visual Studio Code configuration

2021-05-12 Thread Paolo Bonzini
On 12/05/21 13:02, Peter Maydell wrote: --- /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 pas

Re: [PATCH] add Visual Studio Code configuration

2021-05-12 Thread Paolo Bonzini
On 12/05/21 13:08, Philippe Mathieu-Daudé wrote: --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,13 @@ +{ +"configurations": [ +{ +"name": "qemu", +"includePath": [ "${default}", "${workspaceFolder}/linux-headers/**", "${workspaceFolder}/include/*

Re: [PATCH] add Visual Studio Code configuration

2021-05-12 Thread Philippe Mathieu-Daudé
Hi Paolo, On 5/12/21 12:09 PM, 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 maybe add "(@id:asabil.meson)"

Re: [PATCH] add Visual Studio Code configuration

2021-05-12 Thread Peter Maydell
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 subdirector

[PATCH] add Visual Studio Code configuration

2021-05-12 Thread Paolo Bonzini
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.