Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
compileCommands setting does not appear to account for --sysroot/target options #1575
I'm cross compiling and using the --sysroot option with gcc. The extension does not seem to account for this when loading the compile_commands.json file. It correctly includes the header paths specified with the -I option to gcc, but does not include the headers in e.g. sysroot/usr/include.
Removing all entries from both includePath and browse.path did not fix this issue.
Adding the sysroot/usr/include directories to includePath gave me the functionality I was expecting from the compileCommands setting