summaryrefslogtreecommitdiffstats
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
parentd4b41bbd10023f8c391b4bbd2928cc435e19eda3 (diff)
downloadSCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.zip
SCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.tar.gz
SCons-69a0d4b42ca97f034dd6a00fd72c41a6719e225c.tar.bz2
Fix clang and mingw tests
-rw-r--r--src/engine/SCons/Tool/mingw.py7
-rw-r--r--test/import.py2
2 files changed, 8 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
diff --git a/test/import.py b/test/import.py
index b6e5a8d..11fee9c 100644
--- a/test/import.py
+++ b/test/import.py
@@ -75,6 +75,8 @@ ignore = ('__init__.py',
'386asm.py', 'linkloc.py',
# Directory of common stuff for MSVC and MSVS
'MSCommon',
+ # clang common
+ "clangCommon",
# Sun pkgchk and pkginfo common stuff
'sun_pkg.py',
# RPM utilities