[Scons-users] Specify Toolchain for Windows
R0b0t1
r030t1 at gmail.com
Tue May 16 15:48:05 EDT 2017
On Tue, May 16, 2017 at 11:15 AM, Bill Deegan <bill at baddogconsulting.com> wrote:
> SCons doesn't use the users shell PATH.
> It constructs it.
> So if you want to put the mingw-w64 path in your Environement()'s PATH,
> that should help if find the right set of mingw tools
>
> -Bill
>
Thanks for the comment. I've tried to set the following:
```Python
path = ['C:\MinGW\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64\bin']
environ = Environment(tools=['default'])
shooter = environ.Program(target=target, source=sources,
PATH=path, LIBS=libraries, CPPPATH=incpath, LIBPATH=libpath)
```
Where the other values are valid.
But SCons still uses the 32 bit MinGW with GCC 5.3.0:
```
c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0):
undefined reference to `WinMain at 16'
```
More information about the Scons-users
mailing list