Parts fails to build on windows if MSVC is not installed

Issue #24 resolved
Marc Valle created an issue

If only gcc (MinGW) is installed on a windows machine, parts will complain it can't find MSVC and exit if gcc is not explicitly specified via toolchain on the command line.

scons: *** No version of MSVC was found on the system for target win32-x86_64
File "C:\opt\Python27\lib\site-packages\parts\__init__.py", line 12, in <module>

My expectation as a user is for parts to go through all the toolchains it supports on a given platform in priority order similar to how icl, cl are handled.

Note also that this sort of error means that you can't even get help via scons --help

Comments (1)

  1. Jason Kenny

    Merged in marc_valle/parts/issue_24 (pull request #28)

    Consider GCC as possible default compiler on win32

    If only GCC (MinGW) was installed on a windows machine, parts would complain it couldn't find MSVC and exit if GCC was not explicitly specified via toolchain on the command line.

    After this commit, parts will try to use GCC as a last option before giving up.

    Fixes issue #24.

    Approved-by: Jason Kenny dragon512@live.com

    → <<cset 292fc14768e6>>

  2. Log in to comment