Change working drive only in MinGW Makefiles
The parent commit assumed that "cd /d" would work in all Windows shells. While all modern versions of windows have shells that support it, the shells used by NMake and Borland make do not. Borland make does not seem to even support changing drive letters with "d:". Just revert the feature for all make tools except MinGW where the shell is known to support this feature.
This commit is contained in:
parent
b5676134ce
commit
42a732ba20
|
@ -2228,8 +2228,11 @@ void cmLocalUnixMakefileGenerator3
|
|||
return;
|
||||
}
|
||||
|
||||
// In a Windows shell we must change drive letter too.
|
||||
const char* cd_cmd = this->WindowsShell? "cd /d " : "cd ";
|
||||
// In a Windows shell we must change drive letter too. The shell
|
||||
// used by NMake and Borland make does not support "cd /d" so this
|
||||
// feature simply cannot work with them (Borland make does not even
|
||||
// support changing the drive letter with just "d:").
|
||||
const char* cd_cmd = this->MinGWMake? "cd /d " : "cd ";
|
||||
|
||||
if(!this->UnixCD)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue