Skip to content

Setting compilerArgs when generating tasks.json file for compiling #7851

Answered by sean-mcmanus
djairao asked this question in Q&A
Discussion options

You must be logged in to vote

You shouldn't probably be modifiying the javascript. You could git clone our repo and put a breakpoint at https://github.com/microsoft/vscode-cpptools/blob/main/Extension/src/LanguageServer/cppBuildTaskProvider.ts#L169 to see what is going on -- looks like it's just "undefined". In general, the cppbuild feature (which controls building) wasn't designed to inherit from c_cpp_properties.json or the C_Cpp.default settings (which just controls IntelliSense)....maybe we could accept change to the design, not sure.

If you want to give your students a really streamlined experience, I would recommend setting the configurationProvider and using the CMake Tools or Makefile Tools extensions or compi…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by djairao
Comment options

You must be logged in to vote
2 replies
@sean-mcmanus
Comment options

@djairao
Comment options

Comment options

You must be logged in to vote
2 replies
@sean-mcmanus
Comment options

@djairao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants