visual-studio-codemakefilemingw32

MakeFile Tools running -f even with MakeArgs set to -C


I am currently trying to run a MakeFile from MakeFile tools, Ive been googling for hours why it wasn't working from the default. until I found people telling me to use -C instead.

I tried to run the makefile having my current config set to have the MakeArgs of ["-C (directory folder)"].

however when I run build, makefile tools decides to do "mingw32-make -f (directory of makefile) -C (directory folder)"

this is my current config:

"makefile.configurations": [
        {
            "name": "config",
            "makeArgs": ["-C ${workspaceRoot}"],
            "makefilePath": "src/MakeFile"
        }
    ]

for clarity sake yes the Configuration is set to "config"


Solution

  • OP says using makeDirectory rather than makefilePath fixed the issue:

    "makefile.configurations": [
            {
                "name": "config",
                "makeDirectory": "${workspaceRoot}/src"
            }
        ]