Hello, I have just experienced the pain of working with makefiles under windows, with all that forward and backward slash incompatibillity. But I only have that in Sublime Text, because outside it I always use Window’s powershell. Is it possible to rout all build commands through powershell? I did not find an option in the settings, unfortunately.
Make Build system use powershell instead of cmd
deathaxe
#2
The built system directly executes the command being configured in the cmd
key. If you run a batch file it will be executed by the associated interpreter which might be cmd.exe in your case. But you could try to explicitly call your builtscript with powershell by powershell -c "scriptfile"
Example:
{
"cmd": ["powershell", "-c", "makefile"],
"file_regex": "^((?:\\w\\:)?[^\\:\\n]+)\\((\\d+)\\)\\: (?:error|warning) \\w\\d+: ()([^\\n]+)$",
"working_dir": "$project_path",
"shell": false
}
1 Like