Skip to content

Instantly share code, notes, and snippets.

@cengiz-io
Last active February 12, 2017 17:56
Show Gist options
  • Save cengiz-io/d4823ef26de615a716067d9ab448174c to your computer and use it in GitHub Desktop.
Save cengiz-io/d4823ef26de615a716067d9ab448174c to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
my $version = "3.5";
my @commands = qw(llvm-as llvm-dis opt llc lli llvm-link llvm-ar llvm-lib
llvm-nm llvm-config llvm-diff llvm-cov llvm-profdata
llvm-stress llvm-symbolizer llvm-dwarfdump);
foreach my $c (@commands) {
system("sudo update-alternatives --install /usr/bin/$c $c /usr/bin/$c-$version 10");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment