#62 Merged
Repository
dirkbaechle dirkbaechle
Branch
default
Repository
scons scons
Branch
default

Fixes for MinGW under Windows (#2872)

Author
  1. dirkbaechle avatardirkbaechle
Reviewers
Description

Some test patches for MinGW, skipping the MSVS parts when no VisualStudio installation can be found.

Comments (3)

  1. anatoly techtonik

    There are not only MSVC and MinGW out there. Can we transform the check from

    import SCons.Tool.MSCommon as msc
    if not msc.msvc_exists():
       pass
    

    To:

    import SCons.Tool.C
    if C.type = 'MSVC':
        pass
    

    So that it is also possible to do:

    print C.types    - list supported C compilers
    ['MSVC', 'MinGW']
    
    print C.status   - detect installed C compilers
    'MSCV': True
    'MinGW': False
    
    C.choose('MinGW')  - explicitly select the option
    

    Ehh.. Should we move to ML?

  2. dirkbaechle author

    This is basically what the IAPAT (PlatformToolConfig in the Wiki) aims at, right? I think that for now, the currently supported two "types" of C/C++ toolchains (msvc vs. mingw) are all we need. I'd really like to get the test runs green first, and then continue with development of the larger features.

    There definitely has to follow some more discussion about how we define the behaviour and general scope of a Tool (especially when a single Tool like latex.py supports several different toolchains, for miktex, texlive a.s.o.). This could be done either on the Wiki page or the ML. Have a pick... ;)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.