Comments (2)
Hi @deribaucourt . I believe with the latest C/C++ extension prerelease (1.19.3 - which should be fully released shortly), it's currently possible to accomplish what you suggested as an alternative. If using a compile_commands.json
file, and a compilerPath
is set in your c_cpp_properties.json
file, it should be used instead of the compiler specified in compile_commands.json
, yet the arguments provided in compile_commands.json
should continue to used. Note that we do plan to change this behavior in the future, to provide a separate setting for this purpose, as overloading the compilerPath
field may prevent the base configuration from being useful as a fallback for files not found in compile_commands.json
. Some discussion of that issue is here: #11889
We can also keep this request open to track providing a way to override the PATH and/or other environment variables in cppbuild
tasks.
from vscode-cpptools.
Thanks for answering so quickly,
This compilerPath
does perfectly fulfill my need!
Awesome, thank you.
from vscode-cpptools.
Related Issues (20)
- Outline missing some symbols if within an `extern "C"` block HOT 1
- Configurable C_cpp_properties.json Location HOT 3
- v1.21.2 crashes on Linux ARM OS's HOT 6
- Newest version not find references about function and variables HOT 8
- Program sometimes freezes when quickly using the "Step over (F10)" button while debugging HOT 3
- Linux: Incorrect Intelli-Sense Error: global wchar_t array initialized with wide character string literal HOT 2
- Database may randomly not fully populate HOT 1
- 最新版本无法识别函数变量 HOT 3
- 1.21.3 requires VS Code version ^1.82.0 HOT 7
- Inlay hints for array initializers HOT 1
- Indexing / parsing fails due to code that is removed by preprocessor. HOT 1
- Clang format not working
- The language server crashes in v1.21.x on macOS Big Sur or older HOT 8
- Autocomplete adds unnecessary character if insertMode is set to insert
- How to change the default code snippet style? HOT 1
- Indexing wrong compiler include paths when compiler defined with CMake Tools provider HOT 13
- Highlight bug when using macros, reproducible inside HOT 1
- Unable to debug on Windows ARM64 with versions (1.21.*) . Debugging works with 1.20.5 HOT 3
- built in terminal does not start when building and MacOs keeps asking for permission to run everytime when building HOT 2
- v1.21.4 does not cooperate with CMake Tools plugin (IntelliSense does not see headers) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpptools.