clang-tools: add python tools like clang-format-diff to clang-tools
This commit is contained in:
@@ -23,6 +23,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
for script in ${clang-unwrapped.python}/share/clang/* ${clang-unwrapped.python}/bin/*; do
|
||||
if [[ -x "$script" ]]; then
|
||||
ln -s $script $out/bin/$(basename "$script" .py)
|
||||
fi
|
||||
done
|
||||
|
||||
for toolPath in ${clang-unwrapped}/bin/clangd ${clang-unwrapped}/bin/clang-*; do
|
||||
toolName=$(basename "$toolPath")
|
||||
|
||||
|
||||
@@ -166,6 +166,7 @@ stdenv.mkDerivation (
|
||||
''
|
||||
+ ''
|
||||
patchShebangs $python/bin
|
||||
patchShebangs $python/share/clang/
|
||||
|
||||
mkdir -p $dev/bin
|
||||
cp bin/clang-tblgen $dev/bin
|
||||
|
||||
Reference in New Issue
Block a user