Follow-up to r1819556:
* build/generator/swig/__init__.py
(Generator.__init__):
Restore a part of build.generator.swig.executable.output()'s implementation
to fix the build on some systems (three buildbots failed).
@@ -59,7 +59,12 @@ class Generator:
# Calculate SWIG paths
self.swig_path = swig_path
+ if os.access(self.swig_path, os.X_OK):
+ # ### TODO: What's the reason for this os.access() check? It was added
+ # ### in r873265 (== r33191).
self.swig_libdir = subprocess.check_output([self.swig_path, "-swiglib"]).strip()
+ else:
+ self.swig_libdir = None
_swigVersion = None
def version(self):
