Skip to content

Commit

Permalink
llvm*: remove symlinks to llvm-diff, llvm-as and associated LLVM IR u…
Browse files Browse the repository at this point in the history
…tilities.

These llvm-prefixed utilities are not drop-in replacements for the utilities
with similar names, they are specifically for operating on LLVM IR files.
Symlinking these without the prefix causes incompatibilities with tools that
expect diff, as and others to behave normally.
  • Loading branch information
David Truby committed Jul 28, 2020
1 parent 931c554 commit 46e5ea5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkgs/development/compilers/llvm/10/bintools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
ln -s $prog $out/bin/${prefix}$(basename $prog)
done
for prog in ${llvm}/bin/*; do
ln -s $prog $out/bin/${prefix}$(echo $(basename $prog) | sed -e "s|llvm-||")
ln -sf $prog $out/bin/${prefix}$(basename $prog)
done
rm -f $out/bin/${prefix}cat
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/compilers/llvm/7/bintools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
ln -s $prog $out/bin/${prefix}$(basename $prog)
done
for prog in ${llvm}/bin/*; do
ln -s $prog $out/bin/${prefix}$(echo $(basename $prog) | sed -e "s|llvm-||")
ln -sf $prog $out/bin/${prefix}$(basename $prog)
done
rm -f $out/bin/${prefix}cat
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/compilers/llvm/8/bintools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
ln -s $prog $out/bin/${prefix}$(basename $prog)
done
for prog in ${llvm}/bin/*; do
ln -s $prog $out/bin/${prefix}$(echo $(basename $prog) | sed -e "s|llvm-||")
ln -sf $prog $out/bin/${prefix}$(basename $prog)
done
rm -f $out/bin/${prefix}cat
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/compilers/llvm/9/bintools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ in runCommand "llvm-binutils-${version}" { preferLocalBuild = true; } ''
ln -s $prog $out/bin/${prefix}$(basename $prog)
done
for prog in ${llvm}/bin/*; do
ln -s $prog $out/bin/${prefix}$(echo $(basename $prog) | sed -e "s|llvm-||")
ln -sf $prog $out/bin/${prefix}$(basename $prog)
done
rm -f $out/bin/${prefix}cat
Expand Down

0 comments on commit 46e5ea5

Please sign in to comment.