We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e2e94 commit 9ff462eCopy full SHA for 9ff462e
regression_tests/clang.py
@@ -7,6 +7,7 @@
7
import clang
8
9
from regression_tests.utils.os import on_windows
10
+from regression_tests.utils.os import on_macos
11
12
13
#: Include paths.
@@ -23,6 +24,8 @@ def setup_clang_bindings(clang_dir):
23
24
# Set a proper path to libclang so that the bindings can find them.
25
if on_windows():
26
libclang_file_path = os.path.join(clang_dir, 'bin', 'libclang.dll')
27
+ elif on_macos():
28
+ libclang_file_path = os.path.join(clang_dir, 'lib', 'libclang.dylib')
29
else:
30
libclang_file_path = os.path.join(clang_dir, 'lib', 'libclang.so')
31
assert os.path.exists(libclang_file_path), '{}: no such file'.format(libclang_file_path)
0 commit comments