summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-03-25 17:41:06 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-05-25 19:42:45 (GMT)
commit69a0d4b42ca97f034dd6a00fd72c41a6719e225c (patch)
treeccae132a831e8c731d38c1f01b44bc5eb6a41fae /src
parentd4b41bbd10023f8c391b4bbd2928cc435e19eda3 (diff)
downloadSCons-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.py7
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