Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for individual tools to search for windows install paths which aren't in SCons' defaults + changes to get more tests to pass on windows and/or appveyor #3052

Merged
merged 58 commits into from
Jul 7, 2018

Conversation

bdbaddog
Copy link
Contributor

Add method for individual tools to search for windows install paths which aren't in SCons' defaults.

  • Updated logic for mingw and clang on win32 to search default tool install paths if not
    found in normal SCons PATH. If the user specifies PATH or tool specific paths they
    will be used and the default paths below will be ignored.
    • Default path for clang/clangxx : C:\Program Files\LLVM\bin
    • Default path for mingw : c:\MinGW\bin

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated master/src/CHANGES.txt directory (and read the README.txt in that directory)
  • I have updated the appropriate documentation

… to allow tools to search for normal SCOns paths, and then specify alternative default install paths for such tools. This should resolve clang failing on appveyor on windows
@bdbaddog bdbaddog mentioned this pull request Feb 12, 2018
3 tasks
@dmoody256
Copy link
Contributor

mingw binaries can also be installed in cygwins paths such as:

  • C:\cygwin64\bin
  • C:\msys64
  • C:\cygwin\bin
  • C:\msys

So maybe add those to the list of default paths to find mingw binaries.

@bdbaddog
Copy link
Contributor Author

Apparently clang also requires a msvc or msvs tool configured, or also perhaps mingw so that it can find header files via INCLUDE shell environment variable. So my fixes in this patch for clang are not sufficient.

@bdbaddog
Copy link
Contributor Author

For clang include path initialization look at : https://github.com/llvm-mirror/clang/blob/master/lib/Driver/ToolChains/MSVC.cpp

@dmoody256
Copy link
Contributor

dmoody256 commented Feb 14, 2018

There is a Mircosoft implementation of clang which takes MSVC compiler style flags (forward slash) which is different than the mingw clang which is like gcc style flags (dash).

Sent from my Galaxy Note5 using FastHub

@bdbaddog
Copy link
Contributor Author

bdbaddog commented Feb 14, 2018 via email

@dmoody256
Copy link
Contributor

The MSVC one is named clang-cl, more info here:
https://clang.llvm.org/docs/UsersManual.html#clang-cl

@bdbaddog
Copy link
Contributor Author

bdbaddog commented Feb 19, 2018 via email

@dmoody256
Copy link
Contributor

dmoody256 commented Feb 19, 2018 via email

@bdbaddog
Copy link
Contributor Author

bdbaddog commented Feb 19, 2018 via email

@coveralls
Copy link

coveralls commented Mar 25, 2018

Coverage Status

Coverage increased (+1.08%) to 80.142% when pulling 3959c91 on bdbaddog:appveyor_issues into 992aeeb on SCons:master.

@dmoody256
Copy link
Contributor

Opened bdbaddog#2 for this branch in your repo @bdbaddog

… find other possible default mingw install paths. mingw is needed in many cases on windows to compile/archive.
…windows

update pkg-config test to work on windows
…l-tools-to-search-for-windows

fixing swig tool and tests for windows
… runtest.py was run with instead of blindly searching for python vis test.where_is(). This fixes an issue where the swig tests work fine with py3.6 but not with py2.7 on a win64 box with both installed, runtest launched via py -2 runtest.py ...
@bdbaddog bdbaddog changed the title Add method for individual tools to search for windows install paths which aren't in SCons' defaults Add method for individual tools to search for windows install paths which aren't in SCons' defaults + changes to get more tests to pass on windows and/or appveyor Jul 7, 2018
@bdbaddog
Copy link
Contributor Author

bdbaddog commented Jul 7, 2018

Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants