On windows I have set
(setq explicit-shell-file-name "c:/Program Files/Git/bin/bash.exe") to use git-bash for e.g.
M-x shell. In compilation mode however, the standard windows console still seems to be used, as far as I can tell. Can this be changed somehow?
FWIW, I'm actually using projectile-run-project to trigger compilation in this particular scenario.
One possible solution is to place
(projectile-project-run-cmd . "\"c:/Program Files/Git/bin/bash.exe\" build_and_run.sh") in
.dir-locals.el, but then I cannot use the same dir-locals on linux. It is important that the output of
build_and_run.sh is displayed in compilation-mode, because it might contain links with build errors.