[Scons-users] compiler detection

Evan Driscoll driscoll at cs.wisc.edu
Mon Oct 29 13:21:13 EDT 2012


On 10/29/2012 11:42 AM, Philipp Kraus wrote:

> But I have got on MinGW a "shell" problem, because I use 2 env.Command

> lines, and this commands are always run on cmd.exe, but MinGW uses by

> default /bin/sh

> I try to setup env["SHELL"] = "/bin/sh" and the PATH variable in my env

> object, but by the env.Command line I get always that /bin/sh is not

> found (and the command

> creates an error).


Native Python/SCons knows nothing of MinGW paths; the /usr/bin/sh and
/c/blah paths are translated to Windows paths by the MinGW libraries.

You need to set env["SHELL'] to whatever the physical location of sh.exe
is, e.g. env["SHELL"] = "c:/programs/mingw/bin/sh.exe" to make something up.

Evan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20121029/b02d892e/attachment-0001.pgp>


More information about the Scons-users mailing list