I'm trying to build a c/c++ file and generate an assembly listing file at the same time. I can't get it to work. I can build it on the command line and generate the file but I can't do it from within the VSCode build. My tasks.json file is as follows:
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "C:\\Program Files (x86)\\mingw-w64\\i686-8.1.0-posix-dwarf-rt_v6-rev0\\mingw32\\bin\\gcc.exe",
"args": [
"-g",
"-S",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\\Program Files (x86)\\mingw-w64\\i686-8.1.0-posix-dwarf-rt_v6-rev0\\mingw32\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "My Build Task"
},
],
"version": "2.0.0"
}