libclang ~upgrade-ubuntu
libclang bindings / wrappers for D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
libclang
Bindings / wrapper API for libclang in the D programming language.
Build Instructions
Note: for a reproducible and cross-platform build environment, you can run setup-cpp with --llvm=11.0.0
. This will set up LLVM 11.0.0 and the proper environment variables.
Windows
Install LLVM into C:\Program Files\LLVM\
, making sure to tick the "Add LLVM to the system PATH for all users" option.
If libclang.lib
was not found, put the lib
folder of the llvm directory on the PATH.
Linux
If libclang.so
was not found, link it using the following command (adjust the installation path and the llvm version):
sudo ln -s path_to_llvm/lib/libclang-12.so.1 /lib/x86_64-linux-gnu/libclang.so
MacOS
If using an external LLVM installation, add these to your ~/.bash_profile
LLVM_PATH="/usr/local/opt/llvm/" # or any other path
LLVM_VERSION="11.0.0"
export PATH="$LLVM_PATH:$PATH"
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
export LD_LIBRARY_PATH="$LLVM_PATH/lib/:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$LLVM_PATH/lib/:$DYLD_LIBRARY_PATH"
export CPATH="$LLVM_PATH/lib/clang/$LLVM_VERSION/include/"
export LDFLAGS="-L$LLVM_PATH/lib"
export CPPFLAGS="-I$LLVM_PATH/include"
export CC="$LLVM_PATH/bin/clang"
export CXX="$LLVM_PATH/bin/clang++"
(adjust the clang version and the external llvm installation path.)
Then run source ~/.bash_profile
If libclang.dylib
was not found, link it using the following command (adjust the installation path):
ln -s path_to_llvm/lib/libclang.dylib /usr/local/opt/llvm/lib/libclang.dylib
- Registered by Atila Neves
- ~upgrade-ubuntu released 2 years ago
- atilaneves/libclang
- BSD 3-clause
- Copyright © 2018, Atila Neves
- Authors:
- Dependencies:
- none
- Versions:
-
0.3.3 2024-May-23 0.3.2 2023-Jun-20 0.3.1 2023-Mar-15 0.3.0 2023-Mar-10 0.2.13 2023-Feb-28 - Download Stats:
-
-
4 downloads today
-
78 downloads this week
-
351 downloads this month
-
44025 downloads total
-
- Score:
- 3.2
- Short URL:
- libclang.dub.pm