Skip to content

Commit 3c12f2e

Browse files
authored
Update UsingCppInterOp.rst to not reference use of patches + small other updates (#370)
1 parent 4b8fbbc commit 3c12f2e

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

docs/UsingCppInterOp.rst

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ C++ Language Interoperability Layer
77
Loading Dynamic shared library
88
==============================
99

10-
The CppInterop comes with using it is a dynamic shared library,
11-
**libclangCppInterOp.so** which resides in the CppInterOp/build/lib/.
10+
The CppInterop comes with using it is a dynamic shared library, which resides
11+
in the build/lib/ after building CppInterOp following the instructions in
12+
:doc:`Installation and usage <InstallationAndUsage>` .
1213

1314
.. code-block:: bash
1415
1516
libInterop = ctypes.CDLL("./libclangCppInterOp.so")
1617
17-
The above method of usage is for Python; for C, we can include the headers of
18+
The above method of usage is for Python on Linux; for C, we can include the headers of
1819
the library. Including this library in our program enables the user to use
1920
the abilities of CppInterOp. CppInterOp helps programmers with multiple
2021
verifications such as isClass, isBoolean, isStruct, and many more in different
@@ -33,21 +34,6 @@ and LLVM.
3334
We can consider clang-repl as a state manager, where CppInterOp allows you to
3435
query the state from the state manager. Thereafter, cppyy uses this to create
3536
Python objects for C++.
36-
37-
.. code-block:: bash
38-
39-
# Apply the patches for development
40-
compgen -G "../patches/llvm/clang16-*.patch" > /dev/null
41-
&& find ../patches/llvm/clang16-*.patch -printf "%f\n"
42-
&& git apply ../patches/llvm/clang16-*.patch
43-
44-
.. code-block:: bash
45-
46-
# Use the versions of llvm with above patches applied
47-
-DClang_DIR=/usr/lib/llvm-16/build/lib/cmake/clang\
48-
-DLLVM_DIR=/usr/lib/llvm-16/build/lib/cmake/llvm
49-
50-
5137
This section briefly describes all the key **features** offered by
5238
CppInterop. If you are just getting started with CppInterop, then this is the
5339
best place to start.
@@ -318,4 +304,4 @@ with the Installation And Usage Guide.
318304

319305
.. _CPyCppyy: https://github.com/wlav/CPyCppyy
320306

321-
.. _cppyy-backend: https://github.com/wlav/cppyy-backend
307+
.. _cppyy-backend: https://github.com/wlav/cppyy-backend

0 commit comments

Comments
 (0)