From d9d45bcfe5acf70af511f630f019e41b84e51808 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Thu, 21 Nov 2019 07:32:42 -0800 Subject: [PATCH] Fix generator not finding libclang PiperOrigin-RevId: 281745276 Change-Id: I8c55b142a72265f577d6d1e3b673890529428c21 --- sandboxed_api/tools/generator2/code.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sandboxed_api/tools/generator2/code.py b/sandboxed_api/tools/generator2/code.py index 7893965..03f289a 100644 --- a/sandboxed_api/tools/generator2/code.py +++ b/sandboxed_api/tools/generator2/code.py @@ -636,6 +636,7 @@ class Analyzer(object): if test_file_existence and not os.path.isfile(path): raise IOError('Path {} does not exist.'.format(path)) + _init_libclang() index = cindex.Index.create() # type: cindex.Index # TODO(szwl): hack until I figure out how python swig does that. # Headers will be parsed as C++. C libs usually have