Skip to content
Snippets Groups Projects
Commit 9190ffe6 authored by Chris Lattner's avatar Chris Lattner
Browse files

update this to use llvm-config, patch by Jose M. Moya

llvm-svn: 41849
parent ca6c2b75
No related branches found
No related tags found
Loading
...@@ -62,11 +62,10 @@ my $BytecodeFile = $ARGV[0]; ...@@ -62,11 +62,10 @@ my $BytecodeFile = $ARGV[0];
shift @ARGV; shift @ARGV;
my $LLIPath = `which lli`; my $libdir = `llvm-config --libdir`;
$LLIPath = `dirname $LLIPath`; chomp $libdir;
chomp $LLIPath;
my $LibProfPath = $LLIPath . "/../../Debug/lib/profile_rt.so"; my $LibProfPath = $libdir . "/profile_rt.so";
system "opt -q -f $ProfilePass $BytecodeFile -o $BytecodeFile.inst"; system "opt -q -f $ProfilePass $BytecodeFile -o $BytecodeFile.inst";
system "lli -fake-argv0 '$BytecodeFile' -load $LibProfPath " . system "lli -fake-argv0 '$BytecodeFile' -load $LibProfPath " .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment