diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-03-25 17:41:06 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-05-25 19:42:45 (GMT) |
commit | 69a0d4b42ca97f034dd6a00fd72c41a6719e225c (patch) | |
tree | ccae132a831e8c731d38c1f01b44bc5eb6a41fae /src | |
parent | d4b41bbd10023f8c391b4bbd2928cc435e19eda3 (diff) | |
download | SCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.zip SCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.tar.gz SCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.tar.bz2 |
Fix clang and mingw tests
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/mingw.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/mingw.py b/src/engine/SCons/Tool/mingw.py index 4121902..de493f0 100644 --- a/src/engine/SCons/Tool/mingw.py +++ b/src/engine/SCons/Tool/mingw.py @@ -156,7 +156,12 @@ def generate(env): env['PROGSUFFIX'] = '.exe' def exists(env): - return find(env) + mingw = SCons.Tool.find_program_path(env, key_program, default_paths=[r'c:\MinGW\bin',]) + if mingw: + mingw_bin_dir = os.path.dirname(mingw) + env.AppendENVPath('PATH', mingw_bin_dir) + + return mingw # Local Variables: # tab-width:4 |